From df4054d8f36f303eb46c42205c86dd0de1cb4927 Mon Sep 17 00:00:00 2001 From: luanhui <1029149336@@qq.com> Date: Mon, 26 Mar 2018 14:37:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8F=91=E8=BF=87=E6=9D=A5?= =?UTF-8?q?=E7=9A=84=E8=AE=BE=E5=A4=87=E5=8F=B7=E6=9C=89=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3QingDaoWanFu/Rpc/GatheringRpc.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/B3QingDaoWanFu/Rpc/GatheringRpc.cs b/B3QingDaoWanFu/Rpc/GatheringRpc.cs index 84775f8..04e72cc 100644 --- a/B3QingDaoWanFu/Rpc/GatheringRpc.cs +++ b/B3QingDaoWanFu/Rpc/GatheringRpc.cs @@ -22,14 +22,15 @@ namespace BWP.B3QingDaoWanFu.Rpc [Rpc] public static long Insert(Gathering dmo) { + var outerCode = dmo.AccountCustomer_OuterCode.Trim(); using (var context = new TransactionContext()) { var bl = BIFactory.Create(context); // bl.InitNewDmo(dmo); dmo.Domain_ID = DomainContext.Current.ID; - var customerId = BIFactory.Create().GetAccountCustomer_ID(dmo.AccountCustomer_OuterCode); + var customerId = BIFactory.Create().GetAccountCustomer_ID(outerCode); if (customerId == 0) - throw new ApplicationException(string.Format("没有设备号{0}的对应结账客户", dmo.AccountCustomer_OuterCode)); + throw new ApplicationException(string.Format("没有设备号{0}的对应结账客户", outerCode)); dmo.AccountCustomer_ID = customerId; SetAccountCustomerInfo(dmo, context.Session);