示例#1
0
        private WalletRecord BuildWalletRecord(WalletRecordType type, long userId, decimal money, string remark)
        {
            WalletRecord walletRecord = new WalletRecord(type, userId, money, remark);

            walletRecord.SerialNumber = NumberProvider.BuildNumber();
            return(walletRecord);
        }
示例#2
0
        public virtual TBoughtContext ProcessData(TBoughtContext boughtContext)
        {
            SalePriceProvider.Caculate(boughtContext);
            PreProcessOrderData(boughtContext);

            boughtContext.Order.Number = NumberProvider.BuildNumber();
            boughtContext.Order.Title  = BuildTitle(boughtContext);

            boughtContext.Order.Money    = boughtContext.Money;
            boughtContext.Order.PayMoney = boughtContext.Money;

            return(boughtContext);
        }