Ejemplo n.º 1
0
        public static void AdjustPrePay(CustomerPrepayLog adjustInfo)
        {
            CustomerBasicInfo original = GetCustomerInfo(adjustInfo.CustomerSysNo.Value);

            using (ITransaction tran = TransactionManager.Create())
            {
                //1.更新余额
                CustomerDA.UpdatePrepay(adjustInfo.CustomerSysNo.Value, adjustInfo.AdjustAmount.Value);
                //2.记录业务日志
                CustomerDA.CreatePrepayLog(adjustInfo);
                tran.Complete();
            }
        }