From 4f1486915dfa01839e6a3f3640722e7ca4478e26 Mon Sep 17 00:00:00 2001 From: mahao Date: Tue, 14 Mar 2023 13:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WmsWebApi.Application/OtherZll/OtherZllService.cs | 6 ++++++ .../ZlldcjLogs/ZlldcjLogAppService.cs | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/WmsWebApi.Application/OtherZll/OtherZllService.cs b/src/WmsWebApi.Application/OtherZll/OtherZllService.cs index ea1d7c0..6ce84b8 100644 --- a/src/WmsWebApi.Application/OtherZll/OtherZllService.cs +++ b/src/WmsWebApi.Application/OtherZll/OtherZllService.cs @@ -93,6 +93,12 @@ public class OtherZllService : ApplicationService, IOtherZllService result.MESSAGE = "Json格式不正确,详细信息:" + ex.Message; return result; } + if (_dtoList == null || _dtoList.Count() <= 0) + { + bErr = true; + result.MESSAGE = "err:没有1000工厂数据"; + return result; + } WmsWebApiOtherZLLDTO dto = new WmsWebApiOtherZLLDTO(); dto.JSON = content.ToString(); diff --git a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs index 8110c4f..910e0d5 100644 --- a/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs +++ b/src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs @@ -112,7 +112,12 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService { result.TYPE = 'E'; result.MESSAGE = "Json格式不正确,详细信息:" + ex.GetBaseException().Message; - //return result; + return result; + } + if (dtos == null || dtos.Count == 0) + { + bErr = true; + result.MESSAGE = "err:没有1000工厂数据"; return result; }