Commit e42073aa authored by caotao's avatar caotao

1.更新健康指数算法id

parent 9e47332b
......@@ -70,7 +70,7 @@ public class CommonServiceImpl {
String gkzxzjskey2;
//----------------健康指数值计算相关请求属性配置------------------------
@Value("${jkzsjs.url:6cbdb627-4824-4aa8-ae3d-6b5021b690b5}")
@Value("${jkzsjs.url:80538a37-2c68-431b-9aa1-bcab88d88f9e}")
String jkzsjsurl;
......@@ -690,7 +690,7 @@ public class CommonServiceImpl {
return s;
}
@Scheduled(cron = "0/10 * * * * ?")
@Scheduled(cron = "0 0/10 * * * ?")
private void healthWarningMinute() {
List<IdxBizFanPointProcessVariableClassificationDto> data = idxBizFanPointProcessVariableClassificationMapper.getInfluxDBData();
Map<String, List<IdxBizFanPointProcessVariableClassificationDto>> maps = data.stream().collect(Collectors.groupingBy(IdxBizFanPointProcessVariableClassificationDto::getGatewayId));
......@@ -770,7 +770,6 @@ public class CommonServiceImpl {
logger.info("------------------------------------------开始调用健康指数计算算法开始----------------------------------------");
HashMap<String, Object> realParams = new HashMap<>();
realParams.put(gkzxzjskey1, values);
String s = JSON.toJSONString(realParams);
String response = HttpUtil.createPost(baseUrl + jkzsjsurl).body(JSON.toJSONString(realParams)).execute().body();
try {
logger.info("--------------------repsonse: "+response);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment