|
|
@ -198,10 +198,11 @@ public class ProjectService implements IProjectService{ |
|
|
if (!sonUrl.equals(parentUrl)){ |
|
|
if (!sonUrl.equals(parentUrl)){ |
|
|
throw new BaseException(CodeEnum.PROJECT_REGION_NO_SAME); |
|
|
throw new BaseException(CodeEnum.PROJECT_REGION_NO_SAME); |
|
|
} |
|
|
} |
|
|
String httpUrl = "http://localhost:7230/v3.0"+PropUtil.queryPowerAddress; |
|
|
String httpUrl = sonProject.getUrl()+PropUtil.queryPowerAddress; |
|
|
ProjectDto.QueryPower queryPower = new ProjectDto.QueryPower(); |
|
|
ProjectDto.QueryPower queryPower = new ProjectDto.QueryPower(); |
|
|
queryPower.setProjectId(param.getId()); |
|
|
queryPower.setProjectId(param.getId()); |
|
|
queryPower.setUserId(userId); |
|
|
queryPower.setUserId(userId); |
|
|
|
|
|
log.info("httpURl:{}----{}",httpUrl,queryPower); |
|
|
String postBody = RestTemplateUtil.postBody(httpUrl, queryPower); |
|
|
String postBody = RestTemplateUtil.postBody(httpUrl, queryPower); |
|
|
JSONObject jsonObject = JSONObject.parseObject(postBody); |
|
|
JSONObject jsonObject = JSONObject.parseObject(postBody); |
|
|
Integer power = jsonObject.getInteger("data"); |
|
|
Integer power = jsonObject.getInteger("data"); |
|
|
|