magic-boot/data/magic-api/api/后台/数据字典/字典项/获取排序号.ms
2021-10-29 15:29:57 +08:00

24 lines
678 B
Plaintext

{
"properties" : { },
"id" : "5d5fc243a5594f79b95ed279e184732e",
"script" : null,
"groupId" : "376f26eb43a44a3daeafd27020a96f48",
"name" : "获取排序号",
"createTime" : 1634735599490,
"updateTime" : 1634735599490,
"lock" : "0",
"method" : "GET",
"path" : "/sort",
"parameters" : [ ],
"option" : "[]",
"requestBody" : "",
"headers" : [ ],
"paths" : [ ],
"responseBody" : null,
"description" : null,
"requestBodyDefinition" : null,
"responseBodyDefinition" : null,
"optionMap" : { }
}
================================
return db.selectInt("""select max(sort) + 10 from sys_dict_items where dict_id = #{dictId} and is_del = '0'""") || 10;