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); }
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); }