Browse Source

更新版本

master
zhaoxinyu 11 months ago
parent
commit
e39748ba37
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/BalanceSum/BalanceSumDapperRepository.cs

4
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/BalanceSum/BalanceSumDapperRepository.cs

@ -429,7 +429,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
"when ISNULL(A.qty,0) <ISNULL(b.qty,0) then '发运比EDI少'\n" +
"END State\n" +
"from\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(BillTime) BillTime from Set_BBAC_SE_DETAIL where BusinessType=1 group by PN,CustomerPartCodeNoSpace,LU) a full join\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(BillTime) BillTime from Set_BBAC_SE_DETAIL where BusinessType=1 and billtime>='2023-09-25 00:00:00' group by PN,CustomerPartCodeNoSpace,LU) a full join\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(CreationTime) EDITime from Set_BBAC_SE_EDI group by PN,CustomerPartCodeNoSpace,LU) b on a.PN=b.PN and a.CustomerPartCodeNoSpace=b.CustomerPartCodeNoSpace\n" +
"WHERE isnull(A.qty,0)<>isnull(B.qty,0) ) temp order by EDITime,BillTime\n";
var entities = DbConnection.Query<EdiWms>(sql, null, null, false, 1200, null).ToList();
@ -459,7 +459,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
"when ISNULL(A.qty,0) <ISNULL(b.qty,0) then '发运比EDI少'\n" +
"END State\n" +
"from\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(BillTime) BillTime from Set_HBPO_SE_DETAIL where BusinessType=2 group by PN,CustomerPartCodeNoSpace,LU) a full join\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(BillTime) BillTime from Set_HBPO_SE_DETAIL and billtime>='2023-09-25 00:00:00' where BusinessType=2 group by PN,CustomerPartCodeNoSpace,LU) a full join\n" +
"(select PN,LU,CustomerPartCodeNoSpace,sum(Qty) qty ,MAX(CreationTime) EDITime from Set_HBPO_SE_EDI group by PN,CustomerPartCodeNoSpace,LU) b on a.PN=b.PN and a.CustomerPartCodeNoSpace=b.CustomerPartCodeNoSpace\n" +
"WHERE isnull(A.qty,0)<>isnull(B.qty,0) ) temp order by EDITime,BillTime\n";
var entities = DbConnection.Query<EdiWms>(sql, null, null, false, 1200, null).ToList();

Loading…
Cancel
Save