|
|
|
@ -390,7 +390,7 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
|
var hurry = GetHurryRecordNumber(weightBillId); |
|
|
|
query.Columns.Add(DQSelectColumn.Field("ID", order)); |
|
|
|
query.Columns.Add(DQSelectColumn.Create(DQExpression.Subtract(DQExpression.IfNull(DQExpression.Field(detail, "Number"), DQExpression.Value(0)), DQExpression.IfNull(DQExpression.Field(order, "PlanNumber"), DQExpression.Value(0))), "last")); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ(detail, "DeleteState", false), DQCondition.EQ(order, "DeleteState", false), DQCondition.EQ(order, "IsHurryButcher", false), DQCondition.EQ("IsDrop", false), DQCondition.EQ(detail, "WeightBill_ID", weightBillId))); |
|
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ(detail, "DeleteState", false), DQCondition.EQ(order, "DeleteState", false), DQCondition.EQ(order, "IsHurryButcher", false), DQCondition.EQ(order, "IsDrop", false), DQCondition.EQ(detail, "WeightBill_ID", weightBillId))); |
|
|
|
long? id = null; |
|
|
|
using (var session = Dmo.NewSession()) |
|
|
|
{ |
|
|
|
|