This commit is contained in:
苏尹岚
2021-03-03 17:31:17 +08:00
parent 7fa0849e17
commit 8547d2d3b0
6 changed files with 115 additions and 96 deletions

View File

@@ -7,8 +7,10 @@ import (
const (
//账户收入类型
StoreAcctTypeIncomePay = 10 //主动充值
StoreAcctTypeRealFeeIncome = 15 //真实运费 < 临时运费, 临时运费-真实运费的值
StoreAcctTypeIncomePay = 10 //主动充值
StoreAcctTypeRealFeeIncome = 15 //真实运费 < 临时运费, 临时运费-真实运费的值
StoreAcctTypeIncomeCancelTemp = 18 //运单取消,回退的临时运费
StoreAcctTypeIncomeCancelReal = 19 //运单取消,回退的真实运费
//账户支出类型
StoreAcctTypeExpendCreateWaybillEx = 20 //手动发单扣除的临时运费
@@ -37,5 +39,5 @@ type IStoreAcctManager interface {
UpdateStoreAcctBalance(ctx *jxcontext.Context, storeID, price int, isIncome bool) (err error)
InsertStoreAcctExpendAndUpdateStoreAcctBalance(ctx *jxcontext.Context, storeID, price, acctType int, vendorOrderID string) (err error)
InsertStoreAcctIncomeAndUpdateStoreAcctBalance(ctx *jxcontext.Context, storeID, price, acctType int, vendorOrderID string) (err error)
CheckStoreAcctExpendExist(storeID, acctType int, vendorOrderID string) (result bool, err error)
CheckStoreAcctExpendExist(vendorOrderID string) (isEqual, isZero bool, err error)
}