2022-01-13 23:31:04 +08:00
|
|
|
{
|
|
|
|
"properties" : { },
|
|
|
|
"id" : "dd6fd96602cb4905b5c2d79f584ab0a0",
|
|
|
|
"script" : null,
|
|
|
|
"groupId" : "8295fc13678d4144bf7363c465247a50",
|
|
|
|
"name" : "根据角色获取组织机构",
|
2022-03-05 22:30:18 +08:00
|
|
|
"createTime" : 1646490239498,
|
2022-01-13 23:31:04 +08:00
|
|
|
"updateTime" : 1642080922495,
|
|
|
|
"lock" : "0",
|
2022-03-05 22:30:18 +08:00
|
|
|
"createBy" : null,
|
|
|
|
"updateBy" : null,
|
2022-01-13 23:31:04 +08:00
|
|
|
"path" : "/by/role",
|
2022-03-05 22:30:18 +08:00
|
|
|
"method" : "GET",
|
2022-01-13 23:31:04 +08:00
|
|
|
"parameters" : [ ],
|
2022-03-05 22:30:18 +08:00
|
|
|
"options" : [ ],
|
2022-01-13 23:31:04 +08:00
|
|
|
"requestBody" : "",
|
|
|
|
"headers" : [ ],
|
|
|
|
"paths" : [ ],
|
|
|
|
"responseBody" : "{\n \"code\": 200,\n \"message\": \"success\",\n \"data\": [],\n \"timestamp\": 1642080916671,\n \"executeTime\": 90\n}",
|
|
|
|
"description" : null,
|
|
|
|
"requestBodyDefinition" : null,
|
|
|
|
"responseBodyDefinition" : {
|
|
|
|
"name" : "",
|
|
|
|
"value" : "",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Object",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ {
|
|
|
|
"name" : "code",
|
|
|
|
"value" : "200",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Integer",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "message",
|
|
|
|
"value" : "success",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "String",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "data",
|
|
|
|
"value" : "",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Array",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "timestamp",
|
|
|
|
"value" : "1642080916671",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Long",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
}, {
|
|
|
|
"name" : "executeTime",
|
|
|
|
"value" : "90",
|
|
|
|
"description" : "",
|
|
|
|
"required" : false,
|
|
|
|
"dataType" : "Object",
|
|
|
|
"type" : null,
|
|
|
|
"defaultValue" : null,
|
|
|
|
"validateType" : "",
|
|
|
|
"error" : "",
|
|
|
|
"expression" : "",
|
|
|
|
"children" : [ ]
|
|
|
|
} ]
|
2022-03-05 22:30:18 +08:00
|
|
|
}
|
2022-01-13 23:31:04 +08:00
|
|
|
}
|
|
|
|
================================
|
|
|
|
return db.select("""
|
|
|
|
select office_id id from sys_role_office where role_id = #{roleId}
|
|
|
|
""").map(it => it.id)
|