magic-boot/data/magic-api/api/系统管理/菜单管理/获取排序号.ms

39 lines
950 B
Plaintext
Raw Normal View History

2021-10-24 20:09:53 +08:00
{
"properties" : { },
"id" : "4f966df34dbe41ff8b9941da4671eb2d",
"script" : null,
"groupId" : "67b2ce258e24491194b74992958c74aa",
"name" : "获取排序号",
"createTime" : 1646490239522,
2022-01-09 22:13:45 +08:00
"updateTime" : 1641732167291,
2021-10-24 20:09:53 +08:00
"lock" : "0",
"createBy" : null,
"updateBy" : null,
2021-10-24 20:09:53 +08:00
"path" : "/sort",
"method" : "GET",
2021-10-24 20:09:53 +08:00
"parameters" : [ {
"name" : "pid",
"value" : "",
"description" : "",
"required" : true,
"dataType" : "String",
"type" : null,
"defaultValue" : null,
"validateType" : null,
"error" : null,
"expression" : null,
"children" : null
} ],
"options" : [ ],
2021-10-24 20:09:53 +08:00
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null
2021-10-24 20:09:53 +08:00
}
================================
2022-01-09 22:13:45 +08:00
return db.selectInt("""
select max(sort) + 10 from sys_menu where pid = #{pid} and is_del = '0'
""") || 10;