| | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.BasShuttle; |
| | | import com.zy.asrs.entity.BasShuttleErr; |
| | | import com.zy.asrs.service.BasShuttleErrService; |
| | | import com.zy.asrs.service.BasShuttleService; |
| | | import com.zy.asrs.utils.Utils; |
| | | import com.zy.common.utils.NavigatePositionConvert; |
| | | import com.zy.core.News; |
| | | import com.zy.core.enums.ShuttleErrorCodeType; |
| | | import com.zy.core.enums.ShuttleProtocolStatusType; |
| | | import com.zy.core.enums.ShuttleStatusType; |
| | | import com.zy.core.model.command.ShuttleAssignCommand; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 牛眼四向穿梭车 |
| | |
| | | return JSON.toJSONString(this.getCoord()); |
| | | } |
| | | |
| | | public String getErrCode$() { |
| | | if (this.getErrCode() == null) { |
| | | return ""; |
| | | } |
| | | BasShuttleErrService basShuttleErrService = SpringUtils.getBean(BasShuttleErrService.class); |
| | | BasShuttleErr basShuttleErr = basShuttleErrService.selectById(this.getErrCode()); |
| | | if (basShuttleErr == null) { |
| | | return this.getErrCode().toString(); |
| | | } |
| | | return basShuttleErr.getErrName(); |
| | | } |
| | | |
| | | public void setPoint(NyShuttlePointClass point) { |
| | | String locNo = NavigatePositionConvert.nyXyzToLocNo(point.getX(), point.getY(), point.getZ()); |
| | | this.point = point; |