Browse Source

bug

master
yibo 7 years ago
parent
commit
2d07f9ac1e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs

+ 2
- 2
B3SheepButcherManage/BL/Bill/WeightBillBL/WeightBillBL.cs View File

@ -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"));


Loading…
Cancel
Save