This commit is contained in:
邹宗楠
2024-07-18 10:00:03 +08:00
parent f687507516
commit 6a48d9a257
3 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
package dao
import (
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-print/dao"
"time"
)
@@ -18,11 +20,14 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL
foodNameList,
})
globals.SugarLogger.Debugf("===========foodNameList := %s", utils.Format4Output(foodNameList, false))
commentOrder := make([]*badCommentOrder, 0, 0)
if err := GetRows(GetDB(), &commentOrder, sql, sqlParams...); err != nil {
globals.SugarLogger.Debugf("===========err := %v", err)
return "", err
}
globals.SugarLogger.Debugf("===========commentOrder := %s", utils.Format4Output(commentOrder, false))
// 全等于的话就是目标订单
for _, v := range commentOrder {
if v.Count == len(foodNameList) {