| | |
| | | public static BaseResponse<String> wxAccessToken(String configId,String tagId){ |
| | | log.info("【海康根据微信公众号信息获取AccessToken】================开始====configId:"+configId+" && tagId:"+tagId); |
| | | try { |
| | | String res = HKTools.wxAccessToken(configId,tagId); |
| | | HashMap<String,String> params = new HashMap<>(); |
| | | params.put("tagId",tagId); |
| | | params.put("configId",configId); |
| | | String res = HKTools.wxAccessToken(params); |
| | | TypeReference typeReference = |
| | | new TypeReference<BaseResponse<String>>(){}; |
| | | BaseResponse<String> result = JSONObject.parseObject(res, typeReference.getType()); |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | *消防看板-4温湿度统计 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<BaseListPageResponse<TemperatureHumidityDataResponse>> temperatureHumidityDataStatistic(TemperatureHumidityDataRequest param){ |
| | | log.info("【海康消防看板-4温湿度统计】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.temperatureHumidityDataStatistic(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<BaseListPageResponse<TemperatureHumidityDataResponse> >>(){}; |
| | | BaseResponse<BaseListPageResponse<TemperatureHumidityDataResponse>> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康消防看板-4温湿度统计"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康消防看板-4温湿度统计】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | /** |
| | | *分页查询消防设备部件状态 |
| | |
| | | return null; |
| | | } |
| | | /** |
| | | *保存用户及openId绑定信息微信公众号 |
| | | * @return |
| | | */ |
| | | public static BaseResponse<Integer> userOpenidSave(UserOpenidSaveRequest param){ |
| | | log.info("【海康保存用户及openId绑定信息微信公众号】================开始===="+JSONObject.toJSONString(param)); |
| | | try { |
| | | String res = HKTools.userOpenidSave(JSONObject.toJSONString(param)); |
| | | TypeReference typeReference = |
| | | new TypeReference< BaseResponse<Integer>>(){}; |
| | | BaseResponse<Integer> result = JSONObject.parseObject(res, typeReference.getType()); |
| | | logResult(result,"海康保存用户及openId绑定信息微信公众号"); |
| | | return result; |
| | | }catch (Exception e){ |
| | | log.error("【海康保存用户及openId绑定信息微信公众号】================失败====:\n"+ e.getMessage()); |
| | | } |
| | | return null; |
| | | } |
| | | /** |
| | | *分页查询设备监测历史数据 |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | *根据用户标识获取客户端TGC接口 |
| | | * @return |