From fd90df749ab0359f0491640547ad044ae2b13957 Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Wed, 1 Sep 2021 17:34:31 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 06007b28a..b7270ab2e 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -791,7 +791,7 @@ func OrderNotifyReport(ctx *jxcontext.Context, storeIDs, brandIDs []int, vendorI results []*OrderNotifyReportResult ) sql := ` - SELECT IF(a.store_id = 0, a.jx_store_id, a.store_id) store_id, b.name ,COUNT(*) count, COUNT(a.notify_type = 1 or NULL) sms_count, COUNT(a.notify_type = 2 or NULL) voice_count + SELECT SQL_CALC_FOUND_ROWS IF(a.store_id = 0, a.jx_store_id, a.store_id) store_id, b.name ,COUNT(*) count, COUNT(a.notify_type = 1 or NULL) sms_count, COUNT(a.notify_type = 2 or NULL) voice_count FROM goods_order a 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