This commit is contained in:
suyl
2021-06-24 15:45:50 +08:00
parent 0252ab0f53
commit 45f0cddfd6

View File

@@ -362,7 +362,7 @@ func (c *OrderManager) GetOrders(ctx *jxcontext.Context, isIncludeFake bool, fro
SELECT t1.afs_total_shop_money, t2.shop_price
FROM afs_order t1
LEFT JOIN (
SELECT a.afs_order_id, SUM(a.shop_price) shop_price
SELECT a.afs_order_id, SUM(a.shop_price*a.count) shop_price
FROM order_sku_financial a
LEFT JOIN (
SELECT MAX(created_at), afs_order_id