diff --git a/business/model/dao/dao_order_sku_financial.go b/business/model/dao/dao_order_sku_financial.go index a0c8174f4..32086df70 100644 --- a/business/model/dao/dao_order_sku_financial.go +++ b/business/model/dao/dao_order_sku_financial.go @@ -1,6 +1,7 @@ package dao import ( + "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/business/model" "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-print/dao" @@ -16,8 +17,8 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL order_sku_financial WHERE jx_store_id = ? AND created_at >= ? AND created_at <= ? AND name IN (` + dao.GenQuestionMarks(len(foodNameList)) + `) AND is_afs_order = 0 AND vendor_id = 1 GROUP BY vendor_order_id LIMIT 0, 1000` sqlParams = append(sqlParams, []interface{}{ jxStoreId, - endTime, startTime, + endTime, foodNameList, }) @@ -37,6 +38,7 @@ func GetBadCommentOrderId(jxStoreId int, startTime, endTime time.Time, foodNameL vendorOrderIdList = append(vendorOrderIdList, v.VendorOrderId) } } + globals.SugarLogger.Debugf("====vendorOrderIdList := %s", utils.Format4Output(vendorOrderIdList, false)) sql2 := `SELECT * FROM order_sku_financial WHERE vendor_order_id = ? AND is_afs_order = 0 AND vendor_id = 1 ` mathProbability := make(map[string]float64, 0)