aa
This commit is contained in:
@@ -1171,13 +1171,14 @@ func GetStoreAcctExpendLastCreateWayBillFee(db *DaoDB, vendorOrderID string) (ex
|
||||
ORDER BY a.created_at DESC
|
||||
LIMIT 1
|
||||
`
|
||||
err = GetRow(db, &expend, sql, sqlParams)
|
||||
lastFee = expend.ExpendPrice
|
||||
if expend.ExpID != 0 {
|
||||
lastFee += expend.MulitExpendPrice
|
||||
}
|
||||
if expend.IncID != 0 {
|
||||
lastFee -= expend.MulitIncomePrice
|
||||
if err = GetRow(db, &expend, sql, sqlParams); err == nil && expend != nil {
|
||||
lastFee = expend.ExpendPrice
|
||||
if expend.ExpID != 0 {
|
||||
lastFee += expend.MulitExpendPrice
|
||||
}
|
||||
if expend.IncID != 0 {
|
||||
lastFee -= expend.MulitIncomePrice
|
||||
}
|
||||
}
|
||||
return expend, lastFee, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user