mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update查询会员组中会员列表
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id, group_name, group_code, merchant_id, station_id, group_level, group_type, discount, create_by, create_time, update_by, update_time, del_flag
|
||||
</sql>
|
||||
@@ -165,8 +165,14 @@
|
||||
FROM
|
||||
member_basic_info t1
|
||||
JOIN member_group_relation t2 ON t2.member_id = t1.member_id and t2.del_flag = '0'
|
||||
where
|
||||
t2.group_code = #{groupCode,jdbcType=VARCHAR}
|
||||
WHERE t1.del_flag = '0'
|
||||
AND t2.group_code = #{groupCode}
|
||||
<if test="phoneNumber != null and phoneNumber != ''">
|
||||
AND t1.mobile_number LIKE CONCAT('%', #{phoneNumber}, '%')
|
||||
</if>
|
||||
<if test="memberId != null and memberId != ''">
|
||||
AND t2.member_id = #{memberId}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectByGroupCode" resultMap="MemberGroupResult">
|
||||
@@ -247,4 +253,4 @@
|
||||
WHERE
|
||||
FIND_IN_SET(t1.id, (SELECT station_id FROM member_group WHERE group_code = #{groupCode,jdbcType=VARCHAR}))
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user