| | |
| | | package com.zy.core.model.protocol; |
| | | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.BasLiftErr; |
| | | import com.zy.asrs.service.BasLiftErrService; |
| | | import com.zy.core.enums.LiftProtocolStatusType; |
| | | import com.zy.core.model.command.LiftAssignCommand; |
| | | import lombok.Data; |
| | |
| | | private Boolean deviceError; |
| | | |
| | | /** |
| | | * 故障码 |
| | | */ |
| | | private Short errorCode; |
| | | |
| | | /** |
| | | * 任务地址 |
| | | */ |
| | | private Short taskAddress; |
| | |
| | | * 任务命令 |
| | | */ |
| | | private LiftAssignCommand assignCommand; |
| | | |
| | | /** |
| | | * 指令下发时间 |
| | | */ |
| | | private Long sendTime = 0L; |
| | | |
| | | /** |
| | | * 日志采集时间 |
| | | */ |
| | | private Long deviceDataLog = System.currentTimeMillis(); |
| | | |
| | | /** |
| | | * 设置提升机状态 |
| | |
| | | return res; |
| | | } |
| | | |
| | | public String getErrCode$() { |
| | | if (this.errorCode == null) { |
| | | return ""; |
| | | } |
| | | BasLiftErrService basLiftErrService = SpringUtils.getBean(BasLiftErrService.class); |
| | | BasLiftErr basLiftErr = basLiftErrService.selectById(this.errorCode); |
| | | if (basLiftErr == null) { |
| | | return String.valueOf(this.errorCode); |
| | | } |
| | | return basLiftErr.getErrName(); |
| | | } |
| | | |
| | | |
| | | } |