Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
413ba8cda5
  1. 20
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs
  2. 22
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs

20
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs

@ -225,19 +225,19 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
public async Task<string> WmsKanbanOutPut(WmsJitRequestDto input)
{
//var _count1 = _wmsVersionRepository.Count(p => p.Version == input.Version);
//if (_count1 > 0)
//{
// var checkList = new List<ErrorExportDto>();
var _count1 = _wmsVersionRepository.Count(p => p.Version == input.Version);
if (_count1 > 0)
{
var checkList = new List<ErrorExportDto>();
// 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");

22
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs

@ -220,17 +220,17 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
public async Task<string> WmsKanbanOutPut([FromForm] IFormFileCollection files, string version)
{
var _count1 = _wmsVersionRepository.Count(p => p.Version == version);
if (_count1 > 0)
{
var checkList = new List<ErrorExportDto>();
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<ErrorExportDto>();
// checkList.Add(new ErrorExportDto() { Message = "有重复期间数据" });
// if (checkList.Count > 0)
// {
// return await ExportErrorReportAsync(checkList);
// }
//}
var _billNum = "HQKB" + DateTime.Now.ToString("yyyyMMddhhmmss");

Loading…
Cancel
Save