|  |  | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *iccm访客预约签离 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse  iccmSignoff(VisitAppointmentOutRequest param){ | 
 |  |  |         log.info("【海康iccm访客预约签离】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.iccmSignoff(JSONObject.toJSONString(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse>(){}; | 
 |  |  |             BaseResponse  result = JSONObject.parseObject(res, typeReference.getType()); | 
 |  |  |            logResult(result,"海康iccm访客预约签离"); | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【海康iccm访客预约签离】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *iccm访客预约取消 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse  iccmCancelAppointment(VisitAppointmentCancelRequest param){ | 
 |  |  |         log.info("【海康iccm访客预约取消】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.iccmCancelAppointment(JSONObject.toJSONString(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse>(){}; | 
 |  |  |             BaseResponse  result = JSONObject.parseObject(res, typeReference.getType()); | 
 |  |  |            logResult(result,"海康iccm访客预约取消"); | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【海康iccm访客预约取消】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *访客免登记预约 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【海康消防看板-4温湿度统计】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      *消防看板-4获取区域用量排名-能耗看板 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse<List<RegionDataRankingDataResponse>>  regionDataRanking(RegionDataRankingDataRequest param){ | 
 |  |  |         log.info("【海康消防看板-4获取区域用量排名-能耗看板】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.regionDataRanking(JSONObject.toJSONString(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse<List<RegionDataRankingDataResponse> >>(){}; | 
 |  |  |             BaseResponse<List<RegionDataRankingDataResponse>>   result = JSONObject.parseObject(res, typeReference.getType()); | 
 |  |  |             logResult(result,"海康消防看板-4获取区域用量排名-能耗看板"); | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【海康消防看板-4获取区域用量排名-能耗看板】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      *消防看板-4获取区域用量排名-能耗看板 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse<EnergyTotalDataResponse>  energyTotal(EnergyTotalDataRequest param){ | 
 |  |  |         log.info("【海康消防看板-4根据时间和时间维度获取园区能耗数据】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.energyTotal(JSONObject.toJSONString(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse<EnergyTotalDataResponse >>(){}; | 
 |  |  |             BaseResponse<EnergyTotalDataResponse>   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或userName等删除绑定信息 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse  userOpenidDel(UserOpenidSaveRequest param){ | 
 |  |  |         log.info("【海康通过openId或userName等删除绑定信息】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.userOpenidDel(toMap(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse >(){}; | 
 |  |  |             BaseResponse<Integer>   result = JSONObject.parseObject(res, typeReference.getType()); | 
 |  |  |             logResult(result,"海康通过openId或userName等删除绑定信息"); | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【海康通过openId或userName等删除绑定信息】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *分页查询设备监测历史数据 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *分页查询设备的以及下属传感器数据的状态统计 | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     public  static  BaseResponse<List<FindDeviceStatisticsResponse> >  findDeviceStatistics(FindDeviceStatisticsRequest param){ | 
 |  |  |         log.info("【分页查询设备的以及下属传感器数据的状态统计】================开始===="+JSONObject.toJSONString(param)); | 
 |  |  |         try { | 
 |  |  |             String res = HKTools.findDeviceStatistics(JSONObject.toJSONString(param)); | 
 |  |  |             TypeReference typeReference = | 
 |  |  |                     new TypeReference< BaseResponse<List<FindDeviceStatisticsResponse> >>(){}; | 
 |  |  |             BaseResponse<List<FindDeviceStatisticsResponse> >   result = JSONObject.parseObject(res, typeReference.getType()); | 
 |  |  |             logResult(result,"分页查询设备的以及下属传感器数据的状态统计"); | 
 |  |  |             return  result; | 
 |  |  |         }catch (Exception e){ | 
 |  |  |             log.error("【分页查询设备的以及下属传感器数据的状态统计】================失败====:\n"+ e.getMessage()); | 
 |  |  |         } | 
 |  |  |         return  null; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      *消防看板-4报警信息统计 | 
 |  |  |      * @return | 
 |  |  |      */ |