mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 13:05:11 +08:00
update会员计费模板
This commit is contained in:
@@ -199,7 +199,7 @@
|
||||
and t1.merchant_id = #{merchantId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="queryMemberDiscountV2" resultType="com.jsowell.pile.vo.web.MemberDiscountVO">
|
||||
<select id="queryByGroupCodeAndMemberId" resultType="com.jsowell.pile.vo.web.MemberGroupVO">
|
||||
SELECT
|
||||
t1.group_code AS groupCode,
|
||||
t1.group_type AS groupType,
|
||||
@@ -214,4 +214,17 @@
|
||||
and t1.group_code = #{groupCode,jdbcType=VARCHAR}
|
||||
and t2.member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="queryMemberGroupCode" resultType="java.lang.String">
|
||||
SELECT
|
||||
t1.group_code AS groupCode
|
||||
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 t2.member_id = #{memberId,jdbcType=VARCHAR}
|
||||
and t1.merchant_id = #{merchantId,jdbcType=VARCHAR}
|
||||
and find_in_set(#{stationId,jdbcType=VARCHAR}, t1.station_id)
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user