update 会员组

This commit is contained in:
2024-01-02 15:29:30 +08:00
parent 0518eb536d
commit 0199b743a9
8 changed files with 188 additions and 68 deletions

View File

@@ -18,6 +18,10 @@
<result property="updateTime" column="update_time" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="Base_Column_List">
id, group_code, merchant_id, station_id, group_level, group_type, discount, create_by, create_time, update_by, update_time, del_flag
</sql>
<sql id="selectMemberGroupVo">
select id, group_code, merchant_id, station_id, group_level, group_type, discount, create_by, create_time, update_by, update_time, del_flag from member_group
@@ -100,4 +104,21 @@
#{id}
</foreach>
</delete>
<select id="queryMemberGroupList" resultType="com.jsowell.pile.vo.web.MemberGroupVO">
select
t1.id as id,
t1.group_code as groupCode,
t1.merchant_id as merchantId,
t1.station_id as stationId,
t1.group_level as groupLevel,
t1.group_type as groupType,
t1.discount as discount,
t2.merchant_name as merchantName,
t3.station_name as stationName
from member_group t1
left join pile_merchant_info t2 on t1.merchant_id = t2.id
left join pile_station_info t3 on t3.id = t1.station_id
where t1.del_flag = '0'
</select>
</mapper>