From 3ae4f81fa8eb9c1af3215e738fda6d6930921ebb Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Thu, 2 Sep 2021 17:07:53 +0800 Subject: [PATCH] aa --- business/jxstore/report/report.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/report/report.go b/business/jxstore/report/report.go index 95592dc73..58c2a4f73 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -868,9 +868,9 @@ func OrderDeliveryReport(ctx *jxcontext.Context, storeIDs, brandIDs []int, vendo FROM goods_order a LEFT JOIN waybill b ON a.vendor_order_id = b.vendor_order_id AND a.waybill_vendor_id = b.waybill_vendor_id LEFT JOIN store c ON c.id = IF(a.jx_store_id = 0, a.store_id, a.jx_store_id) - WHERE b.status <> ? AND a.vendor_id <> a.waybill_vendor_id + WHERE b.status <> ? AND a.waybill_vendor_id IN (? , ? , ?) ` - sqlParams := []interface{}{model.WaybillStatusCanceled} + sqlParams := []interface{}{model.WaybillStatusCanceled, model.VendorIDMTPS, model.VendorIDDada, model.VendorIDFengNiao} 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)