From 0f177a14f75b7e728ae3dc323dbf192dec3d9da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 6 Jan 2021 16:02:29 +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 044eb1a96..d6c3e6c0b 100644 --- a/business/jxstore/report/report.go +++ b/business/jxstore/report/report.go @@ -335,7 +335,7 @@ func getOrderStateCount(db *dao.DaoDB, cityCodes []int, vendorID, status int) (g SELECT SUM(b.actual_pay_price) actual_pay_price, SUM(b.total_shop_money) total_shop_money, SUM(IFNULL(c.desired_fee, 0)) desired_fee FROM store a LEFT JOIN goods_order b ON a.id = IF(b.jx_store_id = 0, b.store_id, b.jx_store_id) - LEFT JOIN waybill c ON IF(a.waybill_vendor_id = -1,a.vendor_order_id,a.vendor_waybill_id) = b.vendor_waybill_id + LEFT JOIN waybill c ON IF(b.waybill_vendor_id = -1,b.vendor_order_id,b.vendor_waybill_id) = c.vendor_waybill_id WHERE a.deleted_at = ? AND a.status <> ? AND b.order_created_at < ? AND b.order_created_at > ? `