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");