| | |
| | | package com.zy.core.model.protocol; |
| | | |
| | | import com.core.common.Cools; |
| | | import com.zy.asrs.entity.BasSte; |
| | | import com.zy.core.enums.SteHisTaskStatusType; |
| | | import com.zy.core.enums.SteLocaType; |
| | |
| | | basSte.setSteErr(alarm.longValue()); |
| | | } |
| | | basSte.setWrkNo(taskNo.intValue()); |
| | | if (!Cools.isEmpty(row)) { |
| | | basSte.setRow(row.intValue()); |
| | | } |
| | | if (!Cools.isEmpty(bay)) { |
| | | basSte.setBay(bay.intValue()); |
| | | } |
| | | if (!Cools.isEmpty(lev)) { |
| | | basSte.setLev(lev.intValue()); |
| | | } |
| | | return basSte; |
| | | } |
| | | |
| | |
| | | |
| | | // 是否处于报警状态 |
| | | public Boolean isAlarm() { |
| | | return this.alarm > 0; |
| | | return this.alarm > 1; |
| | | } |
| | | |
| | | } |