k94314517
2024-08-20 ade1b378ff2f0781be2fbc537b6c09237a50631a
server/visits/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKTools.java
@@ -10,6 +10,7 @@
import com.hikvision.artemis.sdk.ArtemisHttpUtil;
import com.hikvision.artemis.sdk.config.ArtemisConfig;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.tomcat.util.bcel.Const;
@@ -335,6 +336,22 @@
      return startDoPostStringArtemis(HKConstants.InterfacePath.visitAppiontment,body);
   }
   /**
    *   访客预约
    * @param body
    * @return
    */
   public static String iccmAppointment(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.iccmAppointment,body);
   }
   /**
    *   访客免登记预约
    * @param body
    * @return
    */
   public static String iccmAppointmentMDJ(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.iccmAppointmentMDJ,body);
   }
   /**
    *   访客免登记预约
    * @param body
    * @return
@@ -510,6 +527,15 @@
   public static String appointmentRecords(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.appointmentRecords,body);
   }
   /**
    *   获取访客预约记录列表 iccm
    * @param body
    * @return
    */
   public static String iccmAppointmentRecords(String body) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.iccmAppointmentRecords,body);
   }
   /**
    *   获取全量组织列表
    * @param body
@@ -625,11 +651,14 @@
   }
   /**
    * 获取月台状态
    * @param body
    * @return
    */
   public static String platformStatus(String param) {
      return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus+"?platformIds="+param,null);
      if(StringUtils.isNotBlank(param)){
         return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus+"?platformIds="+param,null);
      }else{
         return startDoPostStringArtemis(HKConstants.InterfacePath.platformStatus,null);
      }
   }
   /**
    * 获取月台组件配置的LED设备清单