From 4a4482cd4c146813dd825765beb215e78a5bb87f Mon Sep 17 00:00:00 2001 From: luanhui <1029149336@qq.com> Date: Thu, 16 Nov 2017 13:22:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E4=B8=AA=E8=83=BD=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs b/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs index 203a33f..39262f2 100644 --- a/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs +++ b/B3ClientService/Rpcs/BillRpc/HouseAndSanctionRpc.cs @@ -241,10 +241,11 @@ namespace BWP.B3ClientService.Rpcs.BillRpc var query = new DQueryDom(new JoinAlias(typeof(HurryRecord))); query.Columns.Add(DQSelectColumn.Sum("HurryNumber")); 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(session); + return rst??0; +// if (rst != null) +// return Convert.ToInt32(rst); +// return 0; } static List GetList(long billID)