Merge branch 'cc_20250909_new' into cc_20250903_big_screen

This commit is contained in:
wangff
2025-09-09 10:46:29 +08:00
32 changed files with 608 additions and 201 deletions

View File

@@ -191,13 +191,19 @@
</select>
<select id="getAllUser" resultType="com.cool.store.dto.UserDTO">
select
user_id as userId,
name,
mobile
from enterprise_user_${eid}
DISTINCT a.user_id as userId,
a.name,
a.mobile
from enterprise_user_${eid} a left join enterprise_user_role_${eid} b on a.`user_id` = b.`user_id`
where active = true
<if test="keyword!=null and keyword!=''">
and( name like concat('%',#{keyword},'%') or mobile like concat('%',#{keyword},'%'))
and( a.name like concat('%',#{keyword},'%') or a.mobile like concat('%',#{keyword},'%'))
</if>
<if test="roleIdList !=null and roleIdList.size>0">
and b.role_id in
<foreach item="roleId" index="index" collection="roleIdList" open="(" separator="," close=")">
#{roleId}
</foreach>
</if>
</select>