mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
styl: 代码格式化
This commit is contained in:
parent
78396f85a9
commit
326cf75e48
@ -7,27 +7,29 @@
|
|||||||
<!-- 用户分页列表 -->
|
<!-- 用户分页列表 -->
|
||||||
<select id="listUserPages" resultType="com.youlai.admin.pojo.po.UserPO">
|
<select id="listUserPages" resultType="com.youlai.admin.pojo.po.UserPO">
|
||||||
SELECT
|
SELECT
|
||||||
u.id,
|
u.id,
|
||||||
u.username,
|
u.username,
|
||||||
u.nickname,
|
u.nickname,
|
||||||
u.mobile,
|
u.mobile,
|
||||||
u.gender,
|
u.gender,
|
||||||
u.avatar,
|
u.avatar,
|
||||||
u.STATUS,
|
u.STATUS,
|
||||||
d.NAME AS dept_name,
|
d.NAME AS dept_name,
|
||||||
GROUP_CONCAT( r.NAME ) AS roleNames,
|
GROUP_CONCAT( r.NAME ) AS roleNames,
|
||||||
u.create_time
|
u.create_time
|
||||||
FROM
|
FROM
|
||||||
sys_user u
|
sys_user u
|
||||||
LEFT JOIN sys_dept d ON u.dept_id = d.id
|
LEFT JOIN sys_dept d ON u.dept_id = d.id
|
||||||
LEFT JOIN sys_user_role ur ON u.id = ur.user_id
|
LEFT JOIN sys_user_role ur ON u.id = ur.user_id
|
||||||
LEFT JOIN sys_role r ON ur.role_id = r.id
|
LEFT JOIN sys_role r ON ur.role_id = r.id
|
||||||
<where>
|
<where>
|
||||||
u.deleted = 0
|
u.deleted = 0
|
||||||
<if test='queryParams.keywords!=null and queryParams.keywords.trim() neq ""'>
|
<if test='queryParams.keywords!=null and queryParams.keywords.trim() neq ""'>
|
||||||
AND (u.username LIKE CONCAT('%',#{queryParams.keywords},'%')
|
AND (
|
||||||
OR u.nickname LIKE CONCAT('%',#{queryParams.keywords},'%')
|
u.username LIKE CONCAT('%',#{queryParams.keywords},'%')
|
||||||
OR u.mobile LIKE CONCAT('%',#{queryParams.keywords},'%'))
|
OR u.nickname LIKE CONCAT('%',#{queryParams.keywords},'%')
|
||||||
|
OR u.mobile LIKE CONCAT('%',#{queryParams.keywords},'%')
|
||||||
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test='queryParams.status!=null'>
|
<if test='queryParams.status!=null'>
|
||||||
AND u.status = #{queryParams.status}
|
AND u.status = #{queryParams.status}
|
||||||
|
Loading…
Reference in New Issue
Block a user