aa
This commit is contained in:
@@ -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 > ?
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user