添加流量计设备实时数据相关接口以及定时任务,统计流量计设备在线数量等

This commit is contained in:
蒾酒
2024-12-30 02:54:13 +08:00
parent 3aac79e169
commit b590dfa9fa
20 changed files with 855 additions and 28 deletions

View File

@ -28,7 +28,7 @@ public class ZhanLianBaseService {
*/
public JSONObject baseRequest(Map<String,Object> body){
String jsonStr = JSONUtil.toJsonStr(body);
String respStr = HttpUtil.post(authorizationService.getAuthEndpoint(), jsonStr);
String respStr = HttpUtil.post(new ZhanLianAuthorizationService().getAuthEndpoint(), jsonStr);
JSONObject resp = JSONUtil.parseObj(respStr);
if(!resp.get("code").toString().equals("200")){
throw new ServiceException(resp.get("message").toString());
@ -91,7 +91,7 @@ public class ZhanLianBaseService {
}
//TODO 属性值历史数据,是否需要
Object list = JSONUtil.parseObj(p).get("list");
// Object list = JSONUtil.parseObj(p).get("list");
//建立属性-值映射关系
propertiesMap.put(key,value);