Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
a01b3b8e91
  1. 28
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs

28
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/HQHSettledDetailDapperRepository.cs

@ -156,6 +156,27 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
var listCompare= DbConnection.Query<CompareExtend>(sql2);
var sql3 = "SELECT\n" +
" a.WmsBillNum,\n" +
" a.MaterialCode,\n" +
" a.Kanban,\n" +
" A.LastModificationTime WmsDate \n" +
"FROM\n" +
" Set_HQ_H_Kanban A\n" +
" LEFT JOIN ( SELECT MaterialCode, Kanban FROM Set_HQ_H_Kanban GROUP BY MaterialCode, Kanban HAVING COUNT(*)> 1 ) B ON A.Kanban = B.Kanban \n" +
" AND A.MaterialCode = B.MaterialCode \n" +
"WHERE\n" +
" B.Kanban IS NULL";
var listCompare1 = DbConnection.Query<CompareExtend>(sql3);
List<CompareExtend> _ls = new List<CompareExtend>();
foreach (var itm in listCompare.ToList())
{
@ -165,11 +186,12 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
first.WmsBillNum += itm.WmsBillNum;
first.WmsDate += itm.WmsDate;
}
}
foreach (var itm in listCompare1.ToList())
{
_ls.Add(itm);
}
var _query = DbConnection.Query<HQHSettledDetailDiff>(_sql, null, null, true, 1200, null);
_list = _query.ToList();

Loading…
Cancel
Save