This commit is contained in:
2023-09-05 17:43:33 +08:00
parent b8028496be
commit 6bf8f27658
2 changed files with 13 additions and 2 deletions

View File

@@ -49,7 +49,14 @@ namespace Tnb.ProductionMgr
public async Task<dynamic> GetList(PrdPackReportQueryInput 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();
var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId);

View File

@@ -123,7 +123,11 @@ namespace Tnb.ProductionMgr
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);