k94314517
2024-09-26 a8c8e4281c0298ce9a946b1d65166a2fe438ce1c
server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -369,6 +369,15 @@
      return  startDoPostStringArtemis(HKConstants.InterfacePath.visitCancel,body);
   }
   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,  "application/json", header);// post请求application/json类型参数
      saveInterfaceLog(JSONObject.toJSONString(body),result,path,pathStr[1]);
      return result;
   }
   public static String startDoPostStringArtemis(String[] pathStr,String body ){
      Map<String, String> path = getPath(pathStr[0]);
      Map<String, String> header = new HashMap<>();
@@ -529,6 +538,14 @@
   }
   /**
    *   获取全量组织信息
    * @param body
    * @return
    */
   public static String orgAllList(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.orgAllList,body);
   }
   /**
    *   获取访客预约记录列表
    * @param body
    * @return
@@ -546,12 +563,63 @@
      return startDoPostStringArtemis(HKConstants.InterfacePath.iccmAppointmentRecords,body);
   }
   /**
    *   获取全量组织列表
    *   根据微信公众号信息获取AccessToken
    * @return
    */
   public static String wxAccessToken(String configId,String tagId) {
      String[] wxAccessToken= HKConstants.InterfacePath.wxAccessToken;
      wxAccessToken[0] = HKConstants.InterfacePath.wxAccessToken+"?tagId="+tagId+"&configId"+configId;
      return startDoPostStringArtemis(wxAccessToken,"");
   }
   /**
    *   根据配置微信公众号编号查询微信公众号信息
    * @param body
    * @return
    */
   public static String orgAllList(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.orgAllList,body);
   public static String getWxConfig(Map<String,String>  body) {
      return startDoGetStringArtemis(HKConstants.InterfacePath.getWxConfig,body);
   }
   /**
    *   根据配置微信公众号编号查询微信公众号信息
    * @param body
    * @return
    */
   public static String nhEventPageList(Map<String,String> body) {
      return startDoGetStringArtemis(HKConstants.InterfacePath.nhEventPageList,body);
   }
   /**
    *   查询消防设备部件状态
    * @param body
    * @return
    */
   public static String fireDeviceStatusSearch(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.fireDeviceStatusSearch,body);
   }
   /**
    *   分页查询消防传感器部件状态
    * @param body
    * @return
    */
   public static String sensorStatusSearch(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.sensorStatusSearch,body);
   }
   /**
    *   询消防设备列表
    * @param body
    * @return
    */
   public static String fireChannelSearch(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.fireChannelSearch,body);
   }
   /**
    *   询消防设备列表
    * @param body
    * @return
    */
   public static String fireDeviceSearch(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.fireDeviceSearch,body);
   }
   /**
    *   获取全量用户列表
@@ -720,4 +788,9 @@
      return startDoPostStringArtemis(HKConstants.InterfacePath.applyST,body);
   }
   public static String getMenuUrl(String menuId, String token) {
      String url = HKConstants.InterfacePath.goMenuUrl[0];
      url = url.replace("${menuId}", menuId).replace("${token}",token);
      return  url;
   }
}