|
|
@ -215,6 +215,7 @@ public class WaterRequestUtil { |
|
|
|
} |
|
|
|
long endTime = System.currentTimeMillis(); |
|
|
|
log.info("--------请求统一门户用户验证,耗时{}毫秒", endTime - startTime); |
|
|
|
log.debug("--------请求统一门户用户验证,返回结果:{}", body); |
|
|
|
WaterResultV2<WaterUser> waterResult = JSON.parseObject(body, new TypeReference<WaterResultV2<WaterUser>>() { |
|
|
|
}); |
|
|
|
isSuccess(waterResult); |
|
|
@ -232,6 +233,7 @@ public class WaterRequestUtil { |
|
|
|
} |
|
|
|
long endTime = System.currentTimeMillis(); |
|
|
|
log.info("-------请求统一门户获取token,耗时{}毫秒,token:[{}]", endTime - startTime, body); |
|
|
|
log.debug("--------请求统一门户获取token,返回结果:{}", body); |
|
|
|
WaterResultV2<WaterToken> waterResult = JSON.parseObject(body, new TypeReference<WaterResultV2<WaterToken>>() { |
|
|
|
}); |
|
|
|
isSuccess(waterResult); |
|
|
@ -271,6 +273,7 @@ public class WaterRequestUtil { |
|
|
|
.execute()) { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
log.debug("--------请求获取门户组织信息,返回结果:{}", body); |
|
|
|
WaterResult waterResult = JSONObject.parseObject(body, WaterResult.class); |
|
|
|
isSuccess(waterResult); |
|
|
|
//{
|
|
|
@ -322,6 +325,7 @@ public class WaterRequestUtil { |
|
|
|
body = response.body(); |
|
|
|
} |
|
|
|
log.info("--------请求获取门户角色信息"); |
|
|
|
log.debug("--------请求获取门户角色信息,返回结果:{}", body); |
|
|
|
WaterResult waterResult = JSONObject.parseObject(body, WaterResult.class); |
|
|
|
isSuccess(waterResult); |
|
|
|
//{\"total\":1,\"size\":100,\"records\":[{\"area\":\"440000\",\"systemList\":[{\"area\":\"440000\",\"code\":\"sgc-jg\",\"name\":\"水工程应用-水利工程建设管理模块\",\"id\":\"1732648267643097090\"}],\"code\":\"YW00013\",\"level\":\"1d\",\"dataConfig\":\"none\",\"type\":\"BUSINESS\",\"posts\":[],\"users\":[{\"id\":\"20231225000006\"},{\"id\":\"20240119000002\"}],\"name\":\"水利工程应用-水利工程建设管理模块角色\",\"id\":\"20231213000001\",\"category\":\"BUSINESS\",\"businesses\":[{\"parent\":\"1762458920822599682\",\"businessCode\":\"YWSLGCJSGL0008\",\"parentName\":\"水利工程建设管理\",\"businessName\":\"水利工程建设管理\",\"description\":\"\",\"id\":\"1705128209926942721\",\"delFlag\":0}],\"status\":\"1\"}],\"page\":1}
|
|
|
|