This commit is contained in:
邹宗楠
2025-09-19 10:09:47 +08:00
parent b6908eff84
commit ad83dbd4e2
2 changed files with 3 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ package dao
import (
"errors"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"sort"
"strings"
"time"
@@ -1598,8 +1597,6 @@ func StatisticsStoreInfo(db *DaoDB, brandId, vendorId, storeList []int, operateN
}
sql += ` GROUP BY s.status `
globals.SugarLogger.Debugf("---------sql := %s", sql)
globals.SugarLogger.Debugf("---------sql := %s", utils.Format4Output(param, false))
if err := GetRows(db, &statistics, sql, param); err != nil {
return nil, err
}
@@ -1703,11 +1700,11 @@ func StatisticsIncome(db *DaoDB, startTime, endTime time.Time, storeId int, bran
parma = append(parma, storeList)
}
if len(brandId) > model.NO {
if operateNum != "" {
sql += ` AND t3.market_man_phone = ?`
parma = append(parma, operateNum)
}
if operateNum != "" {
if brandOperate != "" {
sql += ` AND t3.operator_phone2 = ?`
parma = append(parma, brandOperate)
}