配送和发消息品牌余额限制
This commit is contained in:
@@ -1353,7 +1353,7 @@ func GetBrandBalance(db *DaoDB, brandID int) (result int, err error) {
|
||||
sql := `
|
||||
SELECT a.balance - b.balance balance
|
||||
FROM (
|
||||
SELECT SUM(price) balance
|
||||
SELECT IFNULL(SUM(price),0) balance
|
||||
FROM brand_bill
|
||||
WHERE brand_id = ?
|
||||
AND bill_type = ?
|
||||
|
||||
Reference in New Issue
Block a user