From 6bf8f27658595646a52bfc7fbdcb0af97b37fc79 Mon Sep 17 00:00:00 2001 From: zhoukeda <1315948824@qq.com> Date: Tue, 5 Sep 2023 17:43:33 +0800 Subject: [PATCH] bug --- ProductionMgr/Tnb.ProductionMgr/PrdPackReportService.cs | 9 ++++++++- ProductionMgr/Tnb.ProductionMgr/PrdTaskManageService.cs | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdPackReportService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdPackReportService.cs index 91ccecbf..81854de2 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdPackReportService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdPackReportService.cs @@ -49,7 +49,14 @@ namespace Tnb.ProductionMgr public async Task GetList(PrdPackReportQueryInput input) { if (input == null) throw new ArgumentNullException("input"); - if (string.IsNullOrEmpty(input.stationId)) return Array.Empty(); + if (string.IsNullOrEmpty(input.stationId)) + { + return new + { + pagination = new PageResult(), + list = Array.Empty() + }; + } List trees = new(); var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId); diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdTaskManageService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdTaskManageService.cs index 341427ce..62eee87e 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdTaskManageService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdTaskManageService.cs @@ -123,7 +123,11 @@ namespace Tnb.ProductionMgr if (string.IsNullOrEmpty(stationId)) { - return Array.Empty(); + return new + { + pagination = new PageResult(), + list = Array.Empty() + }; } Dictionary dic = await _dictionaryDataService.GetDicByKey(DictConst.TaskStatus);