magic-boot/data/magic-api/api/后台/组织机构/获取排序号.ms
2022-01-09 22:13:45 +08:00

38 lines
922 B
Plaintext

{
"properties" : { },
"id" : "f6e998eaff2c49be807fcb38a1a7d55b",
"script" : null,
"groupId" : "8295fc13678d4144bf7363c465247a50",
"name" : "获取排序号",
"createTime" : null,
"updateTime" : 1641732159522,
"lock" : "0",
"method" : "GET",
"path" : "/sort",
"parameters" : [ {
"name" : "pid",
"value" : "",
"description" : "",
"required" : true,
"dataType" : "String",
"type" : null,
"defaultValue" : null,
"validateType" : null,
"error" : null,
"expression" : null,
"children" : null
} ],
"option" : "[]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : { }
}
================================
return db.selectInt("""
select max(sort) + 10 from sys_office where pid = #{pid} and is_del = '0'
""") || 10;