mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2026-04-26 00:00:04 +08:00
改结构
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"properties" : { },
|
||||
"id" : "1d736fb0b9b54566943a0ea6696492c6",
|
||||
"script" : null,
|
||||
"groupId" : "fd3d225a1cf141bf9998c4ec4bf4a6ab",
|
||||
"name" : "排序",
|
||||
"createTime" : 1635074732708,
|
||||
"updateTime" : 1635074732708,
|
||||
"lock" : "0",
|
||||
"method" : "GET",
|
||||
"path" : "/resort",
|
||||
"parameters" : [ ],
|
||||
"option" : "[]",
|
||||
"requestBody" : "",
|
||||
"headers" : [ ],
|
||||
"paths" : [ ],
|
||||
"responseBody" : null,
|
||||
"description" : null,
|
||||
"requestBodyDefinition" : null,
|
||||
"responseBodyDefinition" : null,
|
||||
"optionMap" : { }
|
||||
}
|
||||
================================
|
||||
import 'java.net.URLDecoder'
|
||||
|
||||
for(index,url in urls.split(',')){
|
||||
url = URLDecoder.decode(url, "UTF-8")
|
||||
var id = db.selectValue("select id from sys_file where url = #{url}")
|
||||
db.table("sys_file").column("sort",index + 1).where().eq("id",id).update()
|
||||
}
|
||||
Reference in New Issue
Block a user