配送和发消息品牌余额限制

This commit is contained in:
suyl
2021-08-31 14:05:59 +08:00
parent c7b677fd07
commit 637efdc421
7 changed files with 21 additions and 10 deletions

View File

@@ -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 = ?