|  |  | 
 |  |  | import lombok.Data; | 
 |  |  | import com.baomidou.mybatisplus.annotations.TableName; | 
 |  |  | import java.io.Serializable; | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | @Data | 
 |  |  | @TableName("asr_bas_jar") | 
 |  |  | 
 |  |  |     @TableField("jar_pressure") | 
 |  |  |     private Float jarPressure; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 保温时间 | 
 |  |  |      */ | 
 |  |  |     @ApiModelProperty(value= "保温时间") | 
 |  |  |     @TableField("holding_time") | 
 |  |  |     private Date holdingTime; | 
 |  |  |  | 
 |  |  |     public BasJar() {} | 
 |  |  |  | 
 |  |  |     public BasJar(Integer jarNo,Integer region,Integer jarCode,Integer staNo,Integer jarStatus,Integer jarCount,Integer jarErr,String leftDoor,String rightDoor,String leftInEnable,String leftOutEnable,String autoing,Integer jarMode,String rightInEnable,String rightOutEnable) { | 
 
 |  |  | 
 |  |  | import lombok.Data; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * Created by vincent on 2024/6/21 | 
 |  |  |  */ | 
 |  |  | 
 |  |  |  | 
 |  |  |     public Float jarTemperature; | 
 |  |  |     public Float jarPressure; | 
 |  |  |     public boolean holdingSign = false; | 
 |  |  |     public Short upStatus = 0; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |         basJar.setAutoing(autoing?"Y":"N"); | 
 |  |  |         basJar.setJarTemperature(jarTemperature); | 
 |  |  |         basJar.setJarPressure(jarPressure); | 
 |  |  |         if (holdingSign){ | 
 |  |  |             basJar.setHoldingTime(new Date()); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return basJar; | 
 |  |  |     } | 
 
 |  |  | 
 |  |  |  | 
 |  |  |                 jarProtocol.setAutoing(siemensS7Net.getByteTransform().TransInt16(result.Content, 12) == 2);//自动 | 
 |  |  |  | 
 |  |  |                 if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ | 
 |  |  |                     jarProtocol.setHoldingSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 jarProtocol.setUpStatus(jarProtocol.getStatus()); | 
 |  |  | // | 
 |  |  | //                jarProtocol.setMode(2);//模式 | 
 |  |  | //                jarProtocol.setStatus((short)6);//状态 | 
 
 |  |  | 
 |  |  |         <result column="burial" property="burial" /> | 
 |  |  |         <result column="jar_temperature" property="jarTemperature" /> | 
 |  |  |         <result column="jar_pressure" property="jarPressure" /> | 
 |  |  |         <result column="holding_time" property="holdingTime" /> | 
 |  |  |  | 
 |  |  |     </resultMap> | 
 |  |  |  |