@@ -19,6 +19,6 @@
) tmp
left join activity_shop ach on ach.id = tmp.activity_shop_id
left join activity a on ach.activity_id = a.id
- where tmp.goods_id = #{goodsId}
+ where tmp.goods_id = #{goodsId} and a.del_flag = '0'
</select>
</mapper>
@@ -93,6 +93,7 @@
+ where a.del_flag = '0'
group by tmp.goods_id
) ga on ga.goods_id = g.goods_id
where gsr.shop_id = #{shopId}