Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
46e712a871
  1. 7
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs
  2. 2
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs

7
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

@ -197,7 +197,12 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue,
0, true);
entities = entities.Where(p => p.OutputQty != 0).ToList();
entities = entities.Where(p => p.OutputQty != 0 && p.State==0).ToList();
await _wmsRepository.GetDbContext().BulkUpdateAsync(entities);
var count = entities.GroupBy(p => new { p.Type, p.ClientCode }).Count();
if (count > 1)

2
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs

@ -278,7 +278,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" , '{6}' \n" +
" , '{7}' \n" +
" , '{8}' \n" +
" , {9} )";
" , '{9}' )";
sql = string.Format(sql,
taskid

Loading…
Cancel
Save