Browse Source

改为三个条件

master
zhouhongjun 1 year ago
parent
commit
8581f9b529
  1. 15
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAsyncBalanceService.cs

15
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAsyncBalanceService.cs

@ -152,14 +152,17 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
var log = item.Log; var log = item.Log;
//本地查找 //本地查找
var balance = balanceList.Select(o => o.Item1).FirstOrDefault( var balance = balanceList.Select(o => o.Item1).FirstOrDefault(
o => o.DeliverBillType == log.DeliverBillType && o =>
o.CodeType == log.CodeType && //o.DeliverBillType == log.DeliverBillType &&
//o.CodeType == log.CodeType &&
o.RealPartCode == log.RealPartCode && o.RealPartCode == log.RealPartCode &&
o.VinCode == log.VinCode && o.VinCode == log.VinCode &&
o.ErpToLoc == log.ErpToLoc && o.ErpToLoc == log.ErpToLoc
o.OrderNum == log.OrderNum && //&&
o.factory == log.factory && //o.OrderNum == log.OrderNum &&
o.Configcode == log.Configcode); //o.factory == log.factory &&
//o.Configcode == log.Configcode
);
//数据库查找 //数据库查找
if (balance == null) if (balance == null)
{ {

Loading…
Cancel
Save