|  |  | 
 |  |  |    public static String getTodoListPage(Map<String, String> body)  throws  Exception{ | 
 |  |  |       return startDoGetStringArtemis(HKConstants.InterfacePath.getTodoListPage,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     *消防看板-4温湿度数据 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String temperatureHumidityDataStatistic(String body) { | 
 |  |  |       return startDoPostStringArtemisAdmin(HKConstants.InterfacePath.temperatureHumidityDataStatistic,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     *消防看板-4获取区域用量排名-能耗看板 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String regionDataRanking(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.regionDataRanking,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     *消防看板-4根据时间和时间维度获取园区能耗数据 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String energyTotal(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.energyTotal,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     *   获取门禁点列表 | 
 |  |  |     * @param body | 
 |  |  | 
 |  |  |       saveInterfaceLog(body,result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    public static String startDoPostStringArtemisAdmin(String[] pathStr,String body){ | 
 |  |  |       Map<String, String> path = getPath(pathStr[0]); | 
 |  |  |       Map<String, String> header = new HashMap<>(); | 
 |  |  |       header.put("userId", "admin"); | 
 |  |  |       String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 | 
 |  |  |       saveInterfaceLog(body,result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> body ){ | 
 |  |  |       Map<String, String> path = getPath(pathStr[0]); | 
 |  |  |       Map<String, String> header = new HashMap<>(); | 
 |  |  |       header.put("tagId", UUID.randomUUID().toString().replace("-", "")); | 
 |  |  |       String result = ArtemisHttpUtil.doGetArtemis(path, body, null, null,  header); | 
 |  |  |       saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |    } | 
 |  |  |    public static String startDoGetStringArtemis(String[] pathStr,Map<String,String> querys ,Map<String, String> header ){ | 
 |  |  |       Map<String, String> path = getPath(pathStr[0]); | 
 |  |  |       String result = ArtemisHttpUtil.doGetArtemis(path, querys, null, null,  header); | 
 |  |  |       saveInterfaceLog(JSONObject.toJSONString(querys),result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |    } | 
 |  |  |    public static String startDoGetStringArtemisJson(String[] pathStr,Map<String,String> body ){ | 
 |  |  | 
 |  |  |       String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数 | 
 |  |  |       saveInterfaceLog(body,result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |  | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |    public static String startDoPostStringArtemis(String[] pathStr,Map<String, String> querys,Map<String, String> header,String body){ | 
 |  |  |       Map<String, String> path = getPath(pathStr[0]); | 
 |  |  |       header.put("tagId", UUID.randomUUID().toString().replace("-", "")); | 
 |  |  |       String result = ArtemisHttpUtil.doPostStringArtemis(path, body, querys, null, "application/json", header);// post请求application/json类型参数 | 
 |  |  |       saveInterfaceLog(body,result,path,pathStr[1]); | 
 |  |  |       return result; | 
 |  |  |  | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     *   签离访客预约 | 
 |  |  | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String ruleEventSearch(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.ruleEventSearch,body); | 
 |  |  |       Map<String,String> header = new HashMap<>(); | 
 |  |  |       header.put("User-Id","admin"); | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.ruleEventSearch,null,header,body); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     * 安防看板-园区安防设备-各类型设备状态数据列表 | 
 |  |  | 
 |  |  |    public static String getFireDevStatusList(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.getFireDevStatusList,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     * 分页查询设备的以及下属传感器数据的状态统计 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String findDeviceStatistics(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.findDeviceStatistics,body); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     *消防看板-4报警信息统计 | 
 |  |  |     * @param body | 
 |  |  | 
 |  |  |    public static String findAlarmBaseDataStatistic(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.findAlarmBaseDataStatistic,body); | 
 |  |  |    } | 
 |  |  |  | 
 |  |  |    /** | 
 |  |  |     *安防看板-- 分页查询未处理报警信息6 | 
 |  |  |     *安防看板-- b | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.findHomeAlarmInfoPage,body); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     *保存用户及openId绑定信息微信公众号 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String userOpenidSave(String body) { | 
 |  |  |       Map<String,String> header = new HashMap<>(); | 
 |  |  |       header.put("userId","admin"); | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.userOpenidSave,null,header,body); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     *通过openId或userName等删除绑定信息 | 
 |  |  |     * @param param | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String userOpenidDel(Map<String,String>  param) { | 
 |  |  |       Map<String,String> header = new HashMap<>(); | 
 |  |  |       header.put("userId","admin"); | 
 |  |  |       return startDoGetStringArtemis(HKConstants.InterfacePath.userOpenidDel,param,header); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     *分页查询设备监测历史数据 | 
 |  |  |     * @param body | 
 |  |  |     * @return | 
 |  |  |     */ | 
 |  |  |    public static String minitorDataSearch(String body) { | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.minitorDataSearch,body); | 
 |  |  |       return startDoPostStringArtemis(HKConstants.InterfacePath.minitorDataSearchV1,body); | 
 |  |  |    } | 
 |  |  |    /** | 
 |  |  |     * 统计园区总体的安防设备数量,在线数、在线率、离线数、离线率 |