|
|
@ -241,10 +241,11 @@ namespace BWP.B3ClientService.Rpcs.BillRpc |
|
|
var query = new DQueryDom(new JoinAlias(typeof(HurryRecord))); |
|
|
var query = new DQueryDom(new JoinAlias(typeof(HurryRecord))); |
|
|
query.Columns.Add(DQSelectColumn.Sum("HurryNumber")); |
|
|
query.Columns.Add(DQSelectColumn.Sum("HurryNumber")); |
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("WeightBill_ID", wid), DQCondition.IsNull(DQExpression.Field("ToOrderDetail_ID")))); |
|
|
query.Where.Conditions.Add(DQCondition.And(DQCondition.EQ("WeightBill_ID", wid), DQCondition.IsNull(DQExpression.Field("ToOrderDetail_ID")))); |
|
|
var rst = query.EExecuteScalar(session); |
|
|
|
|
|
if (rst != null) |
|
|
|
|
|
return Convert.ToInt32(rst); |
|
|
|
|
|
return 0; |
|
|
|
|
|
|
|
|
var rst = query.EExecuteScalar<int?>(session); |
|
|
|
|
|
return rst??0; |
|
|
|
|
|
// if (rst != null)
|
|
|
|
|
|
// return Convert.ToInt32(rst);
|
|
|
|
|
|
// return 0;
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static List<T> GetList<T>(long billID) |
|
|
static List<T> GetList<T>(long billID) |
|
|
|