查询会员组的站点列表

This commit is contained in:
2024-02-19 15:48:27 +08:00
parent b89901aa8d
commit ba6305e642
6 changed files with 51 additions and 4 deletions

View File

@@ -227,4 +227,16 @@
and t1.merchant_id = #{merchantId,jdbcType=VARCHAR}
and find_in_set(#{stationId,jdbcType=VARCHAR}, t1.station_id)
</select>
<select id="queryStationList" resultType="com.jsowell.pile.vo.base.MemberGroupStationVO">
SELECT
t1.id,
t1.station_name,
t2.remark
FROM
pile_station_info t1
JOIN pile_billing_template t2 ON t2.station_id = t1.id AND t2.del_flag = '0' AND t2.member_flag = '1'
WHERE
FIND_IN_SET(t1.id, (SELECT station_id FROM member_group WHERE group_code = #{groupCode,jdbcType=VARCHAR}))
</select>
</mapper>