2021-10-24 20:09:53 +08:00
|
|
|
{
|
|
|
|
"properties" : { },
|
|
|
|
"id" : "4399f2eb199b46448aa98682fe792667",
|
|
|
|
"script" : null,
|
|
|
|
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
|
|
|
|
"name" : "列表",
|
|
|
|
"createTime" : null,
|
2022-01-15 00:41:37 +08:00
|
|
|
"updateTime" : 1642173275899,
|
2021-10-24 20:09:53 +08:00
|
|
|
"lock" : "0",
|
|
|
|
"method" : "GET",
|
|
|
|
"path" : "/list",
|
|
|
|
"parameters" : [ ],
|
|
|
|
"option" : "[]",
|
|
|
|
"requestBody" : "",
|
|
|
|
"headers" : [ ],
|
|
|
|
"paths" : [ ],
|
|
|
|
"responseBody" : null,
|
|
|
|
"description" : null,
|
|
|
|
"requestBodyDefinition" : null,
|
|
|
|
"responseBodyDefinition" : null,
|
|
|
|
"optionMap" : { }
|
|
|
|
}
|
|
|
|
================================
|
|
|
|
return db.page("""
|
|
|
|
select
|
|
|
|
su.id,
|
|
|
|
su.username,
|
|
|
|
su.name,
|
|
|
|
su.is_login,
|
|
|
|
su.phone,
|
2022-01-13 23:29:56 +08:00
|
|
|
su.create_date,
|
2022-01-15 00:41:37 +08:00
|
|
|
su.office_id,
|
|
|
|
so.name office_name
|
2021-10-24 20:09:53 +08:00
|
|
|
from sys_user su
|
2022-01-15 00:41:37 +08:00
|
|
|
left join sys_office so on su.office_id = so.id
|
2021-10-24 20:09:53 +08:00
|
|
|
where su.is_del = 0
|
2022-01-15 00:41:37 +08:00
|
|
|
?{officeId, and su.office_id in(#{officeId.split(',')})}
|
2021-10-24 20:09:53 +08:00
|
|
|
?{username, and su.username like concat('%',#{username},'%')}
|
|
|
|
?{name, and su.name like concat('%',#{name},'%')}
|
|
|
|
?{isLogin, and su.is_login = #{isLogin}}
|
|
|
|
order by ${orderBy || 'su.create_date desc'}
|
|
|
|
""")
|