magic-boot/data/magic-api/api/数据管理/测试生成/列表.ms

32 lines
877 B
Plaintext
Raw Normal View History

2022-03-29 00:55:40 +08:00
{
"properties" : { },
2022-03-30 23:54:24 +08:00
"id" : "d94a4788e17a4e0f9b67ca86b171e231",
2022-03-29 00:55:40 +08:00
"script" : null,
2022-03-30 23:54:24 +08:00
"groupId" : "7bdcc43555b9419caba2ee722e1aa2d3",
2022-03-29 00:55:40 +08:00
"name" : "列表",
2022-03-30 23:54:24 +08:00
"createTime" : 1648655132912,
2022-03-29 00:55:40 +08:00
"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} }
2022-03-30 23:54:24 +08:00
and is_del = 0
2022-03-29 00:55:40 +08:00
""")