| | |
| | | import com.zy.asrs.wcs.core.service.LocService; |
| | | import com.zy.asrs.wcs.core.utils.RedisUtil; |
| | | import com.zy.asrs.wcs.rcs.constant.DeviceRedisConstant; |
| | | import com.zy.asrs.wcs.rcs.entity.BasShuttleErr; |
| | | import com.zy.asrs.wcs.rcs.model.enums.ShuttleProtocolStatusType; |
| | | import com.zy.asrs.wcs.rcs.entity.Device; |
| | | import com.zy.asrs.wcs.rcs.entity.ShuttleDeviceStatus; |
| | | import com.zy.asrs.wcs.rcs.service.BasShuttleErrService; |
| | | import com.zy.asrs.wcs.rcs.service.ShuttleDeviceStatusService; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | return ""; |
| | | } |
| | | |
| | | public String getErrorCode$() { |
| | | if (this.errorCode == null) { |
| | | return ""; |
| | | } |
| | | BasShuttleErrService basShuttleErrService = SpringUtils.getBean(BasShuttleErrService.class); |
| | | BasShuttleErr shuttleErr = basShuttleErrService.getOne(new LambdaQueryWrapper<BasShuttleErr>() |
| | | .eq(BasShuttleErr::getErrorCode, this.errorCode) |
| | | .eq(BasShuttleErr::getHostId, this.device.getHostId()) |
| | | .eq(BasShuttleErr::getDevicePlc, this.device.getDevicePlc())); |
| | | if (shuttleErr != null) { |
| | | return this.errorCode + "-" + shuttleErr.getErrName(); |
| | | } |
| | | return errorCode; |
| | | } |
| | | |
| | | public Integer getTaskNo() { |
| | | RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); |
| | | if (null != redisUtil) { |