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 WmsSharePartOutPutDto()
{ {
} }
public string Version { set; get; } public string Version { set; get; }
public string BillNum { set; get; } public string BillNum { set; get; }
@ -237,9 +234,6 @@ namespace Win.Sfs.SettleAccount.Entities.Wms
public WmsSharePartOutPutRequestDto() public WmsSharePartOutPutRequestDto()
{ {
} }
public string Version { set; get; } public string Version { set; get; }
public string BillNum { 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) foreach (var itm in _joblist)
{ {
itm.FileName = "已确认"; itm.FileName = "已确认";
}
foreach (var itm in _joblist)
{
await _job.UpdateAsync(itm); await _job.UpdateAsync(itm);
} }
var _count = await _job.BatchUpdateAsync(_joblist.ToList());
if (_count > 0)
{
return true;
}
return false; return false;
} }
/// <summary> /// <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) 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); 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) 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); return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters);
} }
@ -186,8 +187,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>(); var _list = _excelHelper.ExcelToList<WmsSharePartOutPutDetial>();
if (_list.Count() > 0) if (_list.Count() > 0)
{ {
var _lsAry = _list.Select(p => new var _lsAry = _list.Select(p => new
WmsSharePartOutPutDetial( WmsSharePartOutPutDetial(
GuidGenerator.Create(), GuidGenerator.Create(),
@ -253,13 +252,6 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts
string.Empty, string.Empty,
p.Qty p.Qty
)).ToList(); )).ToList();
await _wmsRepository.GetDbContext().BulkInsertAsync(_wmslst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 }); await _wmsRepository.GetDbContext().BulkInsertAsync(_wmslst, new BulkConfig() { BulkCopyTimeout = 0, BatchSize = 10000 });
int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum); int _count = _wmsVersionRepository.Count(p => p.Version == input.Version && p.BillNum == _billNum);
if (_wmslst.Count()>0 && _count == 0) if (_wmslst.Count()>0 && _count == 0)

Loading…
Cancel
Save