bug
This commit is contained in:
@@ -49,7 +49,14 @@ namespace Tnb.ProductionMgr
|
|||||||
public async Task<dynamic> GetList(PrdPackReportQueryInput input)
|
public async Task<dynamic> GetList(PrdPackReportQueryInput input)
|
||||||
{
|
{
|
||||||
if (input == null) throw new ArgumentNullException("input");
|
if (input == null) throw new ArgumentNullException("input");
|
||||||
if (string.IsNullOrEmpty(input.stationId)) return Array.Empty<string>();
|
if (string.IsNullOrEmpty(input.stationId))
|
||||||
|
{
|
||||||
|
return new
|
||||||
|
{
|
||||||
|
pagination = new PageResult(),
|
||||||
|
list = Array.Empty<string>()
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
List<PackReportTreeOutput> trees = new();
|
List<PackReportTreeOutput> trees = new();
|
||||||
var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId);
|
var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId);
|
||||||
|
|||||||
@@ -123,7 +123,11 @@ namespace Tnb.ProductionMgr
|
|||||||
|
|
||||||
if (string.IsNullOrEmpty(stationId))
|
if (string.IsNullOrEmpty(stationId))
|
||||||
{
|
{
|
||||||
return Array.Empty<string>();
|
return new
|
||||||
|
{
|
||||||
|
pagination = new PageResult(),
|
||||||
|
list = Array.Empty<string>()
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary<string, object> dic = await _dictionaryDataService.GetDicByKey(DictConst.TaskStatus);
|
Dictionary<string, object> dic = await _dictionaryDataService.GetDicByKey(DictConst.TaskStatus);
|
||||||
|
|||||||
Reference in New Issue
Block a user