From 7a706a316e3d10b9f0b1d39a2ba7e4c01cfd06b8 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 30 Aug 2021 17:10:46 +0800 Subject: [PATCH] a --- business/jxstore/report/report.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 29c0b354d..06007b28a 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -796,11 +796,9 @@ func OrderNotifyReport(ctx *jxcontext.Context, storeIDs, brandIDs []int, vendorI LEFT JOIN store b ON IF(a.store_id = 0 ,a.jx_store_id, a.store_id) = b.id LEFT JOIN user c ON c.mobile = b.market_man_phone LEFT JOIN user d ON d.mobile = b.operator_phone - WHERE a.status = ? AND a.notify_type <> ? + WHERE a.notify_type <> ? ` - sqlParams := []interface{}{ - model.OrderStatusFinished, 0, - } + sqlParams := []interface{}{0} if len(storeIDs) > 0 { sql += ` AND IF(a.jx_store_id != 0, a.jx_store_id, a.store_id) IN(` + dao.GenQuestionMarks(len(storeIDs)) + `)` sqlParams = append(sqlParams, storeIDs)