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)