From 413ba8cda5aab87f58ed4f9f2e0423378fbe323d Mon Sep 17 00:00:00 2001 From: Administrator Date: Fri, 11 Feb 2022 16:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/WMS/WMSKanbanExtendAppService.cs | 20 ++++++++--------- .../Entities/WMS/WmsHQKBOutputAppService.cs | 22 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs index 4a767a8f..6f0b32aa 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs @@ -225,19 +225,19 @@ namespace Win.Sfs.SettleAccount.Entities.WMS public async Task WmsKanbanOutPut(WmsJitRequestDto input) { - //var _count1 = _wmsVersionRepository.Count(p => p.Version == input.Version); - //if (_count1 > 0) - //{ - // var checkList = new List(); + var _count1 = _wmsVersionRepository.Count(p => p.Version == input.Version); + if (_count1 > 0) + { + var checkList = new List(); - // checkList.Add(new ErrorExportDto() { Message = "有重复期间数据" }); + checkList.Add(new ErrorExportDto() { Message = "有重复期间数据" }); - // if (checkList.Count > 0) - // { + if (checkList.Count > 0) + { - // return await ExportErrorReportAsync(checkList); - // } - //} + return await ExportErrorReportAsync(checkList); + } + } var _billNum = "KA" + DateTime.Now.ToString("yyyyMMddhhmmss"); diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs index a201b180..3bd62dfd 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs @@ -220,17 +220,17 @@ namespace Win.Sfs.SettleAccount.Entities.WMS public async Task WmsKanbanOutPut([FromForm] IFormFileCollection files, string version) { - var _count1 = _wmsVersionRepository.Count(p => p.Version == version); - if (_count1 > 0) - { - var checkList = new List(); - checkList.Add(new ErrorExportDto() { Message = "有重复期间数据" }); - if (checkList.Count > 0) - { - - return await ExportErrorReportAsync(checkList); - } - } + //var _count1 = _wmsVersionRepository.Count(p => p.Version == version); + //if (_count1 > 0) + //{ + // var checkList = new List(); + // checkList.Add(new ErrorExportDto() { Message = "有重复期间数据" }); + // if (checkList.Count > 0) + // { + + // return await ExportErrorReportAsync(checkList); + // } + //} var _billNum = "HQKB" + DateTime.Now.ToString("yyyyMMddhhmmss");