using System; using WX.CRM.BLL.Wx; using WX.CRM.Common; using WX.CRM.DataSynFactory.Templates; namespace WX.CRM.DataSynFactory.Cmd { public class Client_SetPayName_IMP : Interfaces.IDataImportSvr { private WX_SZZYORDERPAY_BL _orderPay = new WX_SZZYORDERPAY_BL(); private WX_SZZYORDERDEPOSIT_BL _orderDeposit = new WX_SZZYORDERDEPOSIT_BL(); public bool GenerateBusinessOne(Client_SetPayName t) { try { //var payInfo = _orderPay.Get(p => p.ORDERID == t.OrderId && p.PAYNO == t.PayNo); //if (payInfo == null) //{ // LogHelper.Error("参数不正确:" + t.ToJson()); //} //payInfo.PAYNAME = t.PayName; //_orderPay.Update(payInfo); var orderDeposit = _orderDeposit.Get(p => p.ID == t.OrderId); orderDeposit.PAYNAME = t.PayName; _orderDeposit.Update(orderDeposit); return true; } catch (Exception ex) { LogHelper.Error(ex.ToString()); return false; } } } }