mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-02-14 23:32:49 +08:00
31 lines
858 B
Plaintext
31 lines
858 B
Plaintext
![]() |
{
|
||
|
"properties" : { },
|
||
|
"id" : "90986654bb2d4560ada10c309195f500",
|
||
|
"script" : null,
|
||
|
"groupId" : "152b9ad78aaf49a7a8945b5de088c1da",
|
||
|
"name" : "列表",
|
||
|
"createTime" : 1648486052761,
|
||
|
"updateTime" : null,
|
||
|
"lock" : null,
|
||
|
"createBy" : null,
|
||
|
"updateBy" : null,
|
||
|
"path" : "/list",
|
||
|
"method" : "POST",
|
||
|
"parameters" : [ ],
|
||
|
"options" : [ ],
|
||
|
"requestBody" : null,
|
||
|
"headers" : [ ],
|
||
|
"paths" : [ ],
|
||
|
"responseBody" : null,
|
||
|
"description" : null,
|
||
|
"requestBodyDefinition" : null,
|
||
|
"responseBodyDefinition" : null
|
||
|
}
|
||
|
================================
|
||
|
return db.page("""
|
||
|
select id,name,sex,head_portrait,remarks from t_data_test where 1=1
|
||
|
?{name, and name like concat('%',#{name},'%') }
|
||
|
?{sex, and sex = #{sex} }
|
||
|
?{headPortrait, and head_portrait in(#{headPortrait.split(',')}) }
|
||
|
?{remarks, and remarks <= #{remarks} }
|
||
|
""")
|