| | |
| | | @TableField("holding_time") |
| | | private Date holdingTime; |
| | | |
| | | /** |
| | | * 开门时间 |
| | | */ |
| | | @ApiModelProperty(value= "开门时间") |
| | | @TableField("open_time") |
| | | private Date openTime; |
| | | |
| | | /** |
| | | * 关门时间 |
| | | */ |
| | | @ApiModelProperty(value= "关门时间") |
| | | @TableField("close_time") |
| | | private Date closeTime; |
| | | |
| | | 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) { |
| | |
| | | public Float jarTemperature; |
| | | public Float jarPressure; |
| | | public boolean holdingSign = false; |
| | | public boolean openDoorSign = false; |
| | | public boolean closeDoorSign = false; |
| | | public Short upStatus = 0; |
| | | |
| | | |
| | |
| | | if (holdingSign){ |
| | | basJar.setHoldingTime(new Date()); |
| | | } |
| | | if (openDoorSign){ |
| | | basJar.setOpenTime(new Date()); |
| | | } |
| | | if (closeDoorSign){ |
| | | basJar.setCloseTime(new Date()); |
| | | } |
| | | |
| | | return basJar; |
| | | } |
| | |
| | | |
| | | jarProtocol.setAutoing(siemensS7Net.getByteTransform().TransInt16(result.Content, 12) == 2);//自动 |
| | | |
| | | if (jarProtocol.statusType .equals(JarStatusType.SOS) || jarProtocol.statusType .equals(JarStatusType.SOS2)){ |
| | | // if (jarProtocol.statusType .equals(JarStatusType.SOS)){ |
| | | // jarProtocol.setHoldingSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | // } else |
| | | if (jarProtocol.statusType .equals(JarStatusType.SOS2)){ |
| | | jarProtocol.setHoldingSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING3) || jarProtocol.statusType .equals(JarStatusType.WAITING4)){ |
| | | jarProtocol.setOpenDoorSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | } else if (jarProtocol.statusType .equals(JarStatusType.WAITING5) || jarProtocol.statusType .equals(JarStatusType.OFF_LINE)){ |
| | | jarProtocol.setCloseDoorSign(!jarProtocol.getStatus().equals(jarProtocol.getUpStatus())); |
| | | } |
| | | |
| | | jarProtocol.setUpStatus(jarProtocol.getStatus()); |
| | |
| | | <result column="jar_temperature" property="jarTemperature" /> |
| | | <result column="jar_pressure" property="jarPressure" /> |
| | | <result column="holding_time" property="holdingTime" /> |
| | | <result column="open_time" property="openTime" /> |
| | | <result column="close_time" property="closeTime" /> |
| | | |
| | | </resultMap> |
| | | |