| | |
| | | import com.zy.asrs.service.impl.MainServiceImpl; |
| | | import com.zy.common.model.NavigateNode; |
| | | import com.zy.common.model.enums.NavigationMapType; |
| | | import com.zy.common.service.CommonService; |
| | | import com.zy.common.utils.NavigateMapData; |
| | | import com.zy.common.utils.NavigatePositionConvert; |
| | | import com.zy.common.utils.NavigateUtils; |
| | |
| | | public static ShuttleAssignCommand searchEmptyGroupToMoveShuttle(int z, Integer currentShuttleId, ShuttleThread shuttleThread, String startLocNo) { |
| | | LocMastService locMastService = SpringUtils.getBean(LocMastService.class); |
| | | MainServiceImpl mainServiceImpl = SpringUtils.getBean(MainServiceImpl.class); |
| | | CommonService commonService = SpringUtils.getBean(CommonService.class); |
| | | |
| | | if (shuttleThread == null) { |
| | | return null; |
| | |
| | | //创建分配命令 |
| | | ShuttleAssignCommand assignCommand = new ShuttleAssignCommand(); |
| | | assignCommand.setShuttleNo(shuttleProtocol.getShuttleNo());//四向穿梭车号 |
| | | assignCommand.setTaskNo((short) 9998);//任务号 |
| | | assignCommand.setTaskNo((short) commonService.getWorkNo(7));//任务号 |
| | | assignCommand.setTaskMode(ShuttleTaskModeType.MOVE_LOC_NO.id.shortValue());//移动到目标库位 |
| | | assignCommand.setSourceLocNo(startLocNo);//源库位 |
| | | |