添加流量计设备实时数据相关接口以及定时任务,统计流量计设备在线数量等
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user