This commit is contained in:
2024-01-08 15:04:49 +08:00
parent 4c39467183
commit 797971fdc9
8 changed files with 291 additions and 262 deletions

View File

@@ -121,4 +121,22 @@
left join pile_station_info t3 on t3.id = t1.station_id
where t1.del_flag = '0'
</select>
<select id="queryMemberDiscount" resultType="com.jsowell.pile.vo.web.MemberDiscountVO">
SELECT
t1.group_code AS groupCode,
t1.group_type AS groupType,
t1.discount AS discount,
t1.merchant_id AS merchantId,
t1.station_id AS stationId
FROM
member_group t1
JOIN member_group_relation t2 ON t2.group_code = t1.group_code
AND t2.del_flag = '0'
WHERE
t1.del_flag = '0'
AND t1.merchant_id = #{merchantId,jdbcType=VARCHAR}
AND t1.station_id = #{stationId,jdbcType=VARCHAR}
AND t2.member_id = #{memberId,jdbcType=VARCHAR}
</select>
</mapper>