doum
2 天以前 636657915c0ba75e10a977a2863295f29fb3142d
server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -421,7 +421,7 @@
   public static String startDoPostStringArtemis(String[] pathStr,String body ){
      Map<String, String> path = getPath(pathStr[0]);
      Map<String, String> header = new HashMap<>();
      header.put("tagId", UUID.randomUUID().toString().replace("-", ""));
      header.put("tagId","frs");
      String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数
      saveInterfaceLog(body,result,path,pathStr[1]);
      return result;
@@ -440,7 +440,7 @@
   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("-", ""));
      header.put("tagId", "frs");
      String result = ArtemisHttpUtil.doGetArtemis(path, body, null, null,  header);
      saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]);
      return result;
@@ -461,7 +461,7 @@
   public static String startDoPostStringArtemis(String[] pathStr,String param,String body ){
      Map<String, String> path = getPath(pathStr[0]+StringUtils.defaultString(param,""));
      Map<String, String> header = new HashMap<>();
      header.put("tagId", UUID.randomUUID().toString().replace("-", ""));
      header.put("tagId","frs");
      String result = ArtemisHttpUtil.doPostStringArtemis(path, body, null, null, "application/json", header);// post请求application/json类型参数
      saveInterfaceLog(body,result,path,pathStr[1]);
      return result;
@@ -470,7 +470,7 @@
   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("-", ""));
      header.put("tagId","frs");
      String result = ArtemisHttpUtil.doPostStringArtemis(path, body, querys, null, "application/json", header);// post请求application/json类型参数
      saveInterfaceLog(body,result,path,pathStr[1]);
      return result;
@@ -573,6 +573,14 @@
    */
   public static String authItemList(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.authItemList,body);
   }
   /**
    * 按业务编号查询下发记录
    * @param body
    * @return
    */
   public static String authResultPage(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.authResultPage,body);
   }
   /**
    * 批量开卡
@@ -908,6 +916,14 @@
      return startDoPostStringArtemis(HKConstants.InterfacePath.findDeviceStatistics,body);
   }
   /**
    * 【海康消防看板】根据条件查询目录下有权限的资源列表
    * @param body
    * @return
    */
   public static String resourcesByParams(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.resourcesByParams,body);
   }
   /**
    *消防看板-4报警信息统计
    * @param body
    * @return