This commit is contained in:
苏尹岚
2021-03-26 13:52:10 +08:00
parent 11740281ca
commit b3c7d41958
6 changed files with 30 additions and 20 deletions

View File

@@ -1146,8 +1146,7 @@ type GetStoreAcctExpendLastCreateWayBillFeeResult struct {
MulitIncomePrice int `json:"mulitIncomePrice"`
}
func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (lastFee int, err error) {
var expend *GetStoreAcctExpendLastCreateWayBillFeeResult
func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (expend *GetStoreAcctExpendLastCreateWayBillFeeResult, lastFee int, err error) {
sql := `
SELECT a.id, b.id exp_id, c.id inc_id,
a.expend_price, b.expend_price mulit_expend_price, c.income_price mulit_income_price
@@ -1176,7 +1175,7 @@ func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (la
if expend.IncID != 0 {
lastFee -= expend.MulitIncomePrice
}
return lastFee, err
return expend, lastFee, err
}
type GetStoreManageStateResult struct {