aa
This commit is contained in:
@@ -1138,12 +1138,19 @@ func GetStoreAcctExpendTotal(db *DaoDB, storeID int, expendTypes []int, vendorOr
|
||||
}
|
||||
|
||||
type GetStoreAcctExpendLastCreateWayBillFeeResult struct {
|
||||
ID int `orm:"column(id)" json:"id"`
|
||||
ExpID int `orm:"column(exp_id)" json:"expID"` //少扣的钱
|
||||
IncID int `orm:"column(inc_id)" json:"incID"` //多扣的钱
|
||||
ExpendPrice int `json:"expendPrice"`
|
||||
MulitExpendPrice int `json:"mulitExpendPrice"`
|
||||
MulitIncomePrice int `json:"mulitIncomePrice"`
|
||||
}
|
||||
|
||||
func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (lastFee int, err error) {
|
||||
var expend *model.StoreAcctExpend
|
||||
var expend *GetStoreAcctExpendLastCreateWayBillFeeResult
|
||||
sql := `
|
||||
SELECT a.id, b.id exp_id, c.id inc_id
|
||||
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
|
||||
FROM store_acct_expend a
|
||||
LEFT JOIN store_acct_expend b ON a.id = b.exp_id
|
||||
LEFT JOIN store_acct_income c ON a.id = c.exp_id
|
||||
|
||||
Reference in New Issue
Block a user