diff --git a/business/model/dao/dao_order_sku_financial.go b/business/model/dao/dao_order_sku_financial.go index 8d5a5c7b3..daf649fd1 100644 --- a/business/model/dao/dao_order_sku_financial.go +++ b/business/model/dao/dao_order_sku_financial.go @@ -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,16 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL foodNameList, }) + globals.SugarLogger.Debugf("sql :==========%s", sql) + globals.SugarLogger.Debugf("parma :==========%s", utils.Format4Output(sqlParams, 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) {