CCN.Modules.Customer.DataAccess.CustomerDA.UpdateCustWeChatPay C# (CSharp) Method

UpdateCustWeChatPay() public method

保存会员的订单
public UpdateCustWeChatPay ( CustWxPayModel model ) : int
model CCN.Modules.Customer.BusinessEntity.CustWxPayModel
return int
        public int UpdateCustWeChatPay(CustWxPayModel model)
        {
            var sqlStr = new StringBuilder("update cust_wxpay_info set ");
            sqlStr.Append(Helper.CreateField(model).Trim().TrimEnd(','));
            sqlStr.Append(" where innerid=@innerid");

            using (var conn = Helper.GetConnection())
            {
                try
                {
                    conn.Execute(sqlStr.ToString(), model);
                    return 1;
                }
                catch (Exception ex)
                {
                    LoggerFactories.CreateLogger().Write("C用户修改会员信息:", TraceEventType.Error, ex);
                    return 0;
                }
            }
        }