| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.BasSte; |
| | | import com.zy.asrs.service.BasSteService; |
| | | import com.zy.common.utils.News; |
| | | import com.zy.core.enums.SteHisTaskStatusType; |
| | | import com.zy.core.enums.SteLocaType; |
| | | import com.zy.core.enums.SteStatusType; |
| | |
| | | private Short steNo; |
| | | |
| | | /** |
| | | * -1 = 离线 |
| | | * 1 = 联机模式 |
| | | * 0 = 脱机模式 |
| | | */ |
| | |
| | | */ |
| | | private Short chargeStatus; |
| | | |
| | | // 入库取空 |
| | | private Boolean inEmpty; |
| | | |
| | | // 出库取空 |
| | | private Boolean outEmpty; |
| | | |
| | | public void setStatus(Short status){ |
| | | this.status = status; |
| | | this.statusType = SteStatusType.get(status); |
| | |
| | | && !isAlarm() |
| | | && this.chargeStatus == 0 |
| | | && isEnable() |
| | | && this.getMode()==1 |
| | | ; |
| | | if (!res) { |
| | | return res; |
| | |
| | | String chargeLine = SpringUtils.getBean(BasSteService.class).selectById(this.steNo).getChargeLine(); |
| | | return charge > Float.parseFloat(chargeLine); |
| | | } catch (Exception e) { |
| | | log.error("fail", e); |
| | | News.error("fail", e); |
| | | return false; |
| | | } |
| | | } |