Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
eae4d1b116
  1. 6
      src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsJitOutPutDetialDto.cs
  2. 8
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs
  3. 1
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanAppService.cs
  4. 10
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePartAppService.cs

6
src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsJitOutPutDetialDto.cs

@ -220,9 +220,6 @@ namespace Win.Sfs.SettleAccount.Entities.Wms
public WmsSharePartOutPutDto()
{
}
public string Version { set; get; }
public string BillNum { set; get; }
@ -237,9 +234,6 @@ namespace Win.Sfs.SettleAccount.Entities.Wms
public WmsSharePartOutPutRequestDto()
{
}
public string Version { set; get; }
public string BillNum { set; get; }

8
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs

@ -193,16 +193,8 @@ into temp1
foreach (var itm in _joblist)
{
itm.FileName = "已确认";
}
foreach (var itm in _joblist)
{
await _job.UpdateAsync(itm);
}
var _count = await _job.BatchUpdateAsync(_joblist.ToList());
if (_count > 0)
{
return true;
}
return false;
}
/// <summary>

1
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanAppService.cs

@ -104,6 +104,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
private async Task<long> GetCountAsync(WmsKanbanOutPutDetialRequestDto input)
{
input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "BillNum", Logic = EnumFilterLogic.And, Value = input.BillNum });
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters);
}

10
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePartAppService.cs

@ -99,6 +99,7 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
private async Task<long> GetCountAsync(WmsSharePartOutPutDetialRequestDto input)
{
input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "BillNum", Logic = EnumFilterLogic.And, Value = input.BillNum });
return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters);
}
@ -186,8 +187,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>();
if (_list.Count() > 0)
{
var _lsAry = _list.Select(p => new
WmsSharePartOutPutDetial(
GuidGenerator.Create(),
@ -253,13 +252,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
string.Empty,
p.Qty
)).ToList();
await _wmsRepository.GetDbContext().BulkInsertAsync(_wmslst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 });
int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum);
if (_wmslst.Count()>0 && _count == 0)

Loading…
Cancel
Save