修复获取选址数量逻辑

This commit is contained in:
zhangchenbiao
2024-04-25 17:10:39 +08:00
parent bfd467f1df
commit 1f248a55e6
5 changed files with 35 additions and 6 deletions

View File

@@ -93,5 +93,17 @@
</select>
<select id="getSelectedShopNum" resultType="com.cool.store.dto.point.LineCountDTO">
select
line_id as lineId,
count(1) as selectedShopNum
from xfsg_shop_info
where deleted = 0 and point_id > 0 and line_id in
<foreach collection="lineIds" item="lineId" index="index" open="(" separator="," close=")">
#{lineId}
</foreach>
group by line_id
</select>
</mapper>