magic-boot/data/magic-api/api/后台/用户管理/列表.ms

40 lines
1020 B
Plaintext
Raw Normal View History

2021-10-24 20:09:53 +08:00
{
"properties" : { },
"id" : "4399f2eb199b46448aa98682fe792667",
"script" : null,
"groupId" : "4f0230049d7e4f39b1e0897cc0f46f9a",
"name" : "列表",
"createTime" : null,
2022-01-13 23:29:56 +08:00
"updateTime" : 1642086792944,
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,
su.office_id
2021-10-24 20:09:53 +08:00
from sys_user su
where su.is_del = 0
2022-01-13 23:29:56 +08:00
?{officeId, and su.office_id = #{officeId}}
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'}
""")