From 2d07f9ac1eba5ea5c7417fb858d949ba9bac5f3f Mon Sep 17 00:00:00 2001 From: yibo <361071264@qq.com> Date: Thu, 6 Dec 2018 10:10:17 +0800 Subject: [PATCH] bug --- B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs b/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs index bf24e22..4891bfc 100644 --- a/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs +++ b/B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs @@ -142,9 +142,9 @@ namespace BWP.B3SheepButcherManage.BL var main = new JoinAlias(typeof(Summary)); var detail = new JoinAlias(typeof(WeightBill_Record)); - var query = new DQueryDom(detail); + var query = new DQueryDom(main); Summary.Register(query, exp); - query.From.AddJoin(JoinType.Left, new DQDmoSource(main), DQCondition.EQ(main, "ID", detail, "ID")); + query.From.AddJoin(JoinType.Inner, new DQDmoSource(detail), DQCondition.EQ(main, "ID", detail, "ID")); query.Columns.Add(DQSelectColumn.Field("ID", detail)); query.Columns.Add(DQSelectColumn.Sum(main, "Number")); query.Columns.Add(DQSelectColumn.Max(detail, "Number"));