用户管理 左侧加机构树

This commit is contained in:
吕金泽
2022-01-13 23:29:56 +08:00
parent 975b27616a
commit e275ae841c
5 changed files with 105 additions and 39 deletions

View File

@@ -5,7 +5,7 @@
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "保存",
"createTime" : null,
"updateTime" : 1641261914841,
"updateTime" : 1642085497821,
"lock" : "0",
"method" : "POST",
"path" : "/save",
@@ -31,7 +31,8 @@ var user = {
username,
password: password,
phone,
isLogin
isLogin,
officeId
}
if(id){
SqlCache.delete(`permissions:${id}`)

View File

@@ -5,7 +5,7 @@
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "列表",
"createTime" : null,
"updateTime" : 1634738477796,
"updateTime" : 1642086792944,
"lock" : "0",
"method" : "GET",
"path" : "/list",
@@ -28,9 +28,11 @@ return db.page("""
su.name,
su.is_login,
su.phone,
su.create_date
su.create_date,
su.office_id
from sys_user su
where su.is_del = 0
?{officeId, and su.office_id = #{officeId}}
?{username, and su.username like concat('%',#{username},'%')}
?{name, and su.name like concat('%',#{name},'%')}
?{isLogin, and su.is_login = #{isLogin}}