From 1ad88ce845f0106c94f5ad336b9c34088d98ec15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 16 Jan 2023 10:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/Prices/PriceListManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs index 827f2e3d..35acc237 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/Prices/PriceListManager.cs @@ -78,6 +78,9 @@ namespace Win.Sfs.SettleAccount.Entities.Prices var pricelist = GetPriceList(version); + + + //var LeftJoin = from emp in ListOfEmployees // join dept in ListOfDepartment // on emp.DeptID equals dept.ID into JoinedEmpDept @@ -98,8 +101,8 @@ namespace Win.Sfs.SettleAccount.Entities.Prices { var add = from itm1 in entities join itm2 in pricelist - on new { itm1.Type, itm1.MaterialCode } - equals new { itm2.Type, itm2.MaterialCode } + on new { itm1.Type, itm1.MaterialCode,itm1.CustomerCode } + equals new { itm2.Type, itm2.MaterialCode,itm2.CustomerCode } into temp from itm3 in temp.DefaultIfEmpty() where itm3 == null