配送和发消息品牌余额限制
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 = ?
|
||||
|
||||
@@ -33,6 +33,8 @@ const (
|
||||
BrandOpenFN = 4 //蜂鸟
|
||||
BrandOpenSMS = 8 //短信
|
||||
BrandOpenVoice = 16 //语音
|
||||
|
||||
BrandBalanceLimit = 1000
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user