Commit 56bc37a0 by 郑云飞

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

parent 646a35bd
......@@ -44,8 +44,10 @@
FROM
order_main om
LEFT JOIN order_sub os ON om.id = os.mainid
left join group_order go on om.group_order_id = go.id
WHERE
om.group_order_id IS NOT NULL
and go.group_buy_id = #{id,jdbcType=BIGINT}
GROUP BY
os.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