Browse Source

有个能会报错

master
luanhui 8 years ago
parent
commit
4a4482cd4c
1 changed files with 5 additions and 4 deletions
  1. +5
    -4
      B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs

+ 5
- 4
B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs View File

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


Loading…
Cancel
Save