|  |  | 
 |  |  |     String bedNo; | 
 |  |  |     Long roomId; | 
 |  |  |     String roomName; | 
 |  |  |     AtomicInteger readyPatNum = new AtomicInteger(0); | 
 |  |  |     Integer maxReadyPatNum; | 
 |  |  |     Integer[] checkTypes; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * @see cn.lihu.jh.module.ecg.enums.BedOpTypeEnum | 
 |  |  |      */ | 
 |  |  |     Integer opType; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * @see cn.lihu.jh.module.ecg.enums.BedStatusEnum | 
 |  |  |       */ | 
 |  |  |     Integer status; | 
 |  |  |     Integer[] checkTypes; | 
 |  |  |     Integer opType; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 这两个字段 用于分流控制, 参与分流的工位使用 | 
 |  |  |      * 【候诊中】患者数 、最大允许数 | 
 |  |  |      */ | 
 |  |  |     Integer readyPatNum = 0; | 
 |  |  |     Integer maxReadyPatNum = 0; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public int compareTo(@NotNull BedBO o) { | 
 |  |  |         return Integer.compare(this.readyPatNum.get(), o.readyPatNum.get()); | 
 |  |  |         return Integer.compare(this.readyPatNum, o.readyPatNum); | 
 |  |  |     } | 
 |  |  | } |