用户管理优化

This commit is contained in:
吕金泽
2022-01-15 00:41:37 +08:00
parent c954eb5eed
commit 2041a7ef4c
4 changed files with 313 additions and 34 deletions
@@ -5,7 +5,7 @@
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "列表",
"createTime" : null,
"updateTime" : 1642086792944,
"updateTime" : 1642173275899,
"lock" : "0",
"method" : "GET",
"path" : "/list",
@@ -29,10 +29,12 @@ return db.page("""
su.is_login,
su.phone,
su.create_date,
su.office_id
su.office_id,
so.name office_name
from sys_user su
left join sys_office so on su.office_id = so.id
where su.is_del = 0
?{officeId, and su.office_id = #{officeId}}
?{officeId, and su.office_id in(#{officeId.split(',')})}
?{username, and su.username like concat('%',#{username},'%')}
?{name, and su.name like concat('%',#{name},'%')}
?{isLogin, and su.is_login = #{isLogin}}