Commit 1c569b7b by 郑云飞

已售数量只查询本次团购中的

parent 56bc37a0
...@@ -46,8 +46,7 @@ ...@@ -46,8 +46,7 @@
LEFT JOIN order_sub os ON om.id = os.mainid LEFT JOIN order_sub os ON om.id = os.mainid
left join group_order go on om.group_order_id = go.id left join group_order go on om.group_order_id = go.id
WHERE WHERE
om.group_order_id IS NOT NULL go.group_buy_id = #{id,jdbcType=BIGINT} and om.sdef4 = 1
and go.group_buy_id = #{id,jdbcType=BIGINT}
GROUP BY GROUP BY
os.productid os.productid
) ms ON gbp.product_id = ms.productid ) ms ON gbp.product_id = ms.productid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment