|  |  |  | 
|---|
|  |  |  | import com.zy.asrs.service.LocMastService; | 
|---|
|  |  |  | import com.zy.asrs.service.WrkMastService; | 
|---|
|  |  |  | import com.zy.asrs.utils.Utils; | 
|---|
|  |  |  | import com.zy.common.service.CommonService; | 
|---|
|  |  |  | import com.zy.common.utils.NavigatePositionConvert; | 
|---|
|  |  |  | import com.zy.core.cache.MessageQueue; | 
|---|
|  |  |  | import com.zy.core.cache.OutputQueue; | 
|---|
|  |  |  | 
|---|
|  |  |  | private WrkMastService wrkMastService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private LocMastService locMastService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private CommonService commonService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @PostMapping("/table/shuttle/state") | 
|---|
|  |  |  | @ManagerAuth(memo = "四向穿梭车信息表") | 
|---|
|  |  |  | 
|---|
|  |  |  | ShuttleTaskModeType shuttleTaskModeType = ShuttleTaskModeType.get(param.getShuttleTaskMode()); | 
|---|
|  |  |  | assignCommand.setShuttleNo(shuttleSlave.getId().shortValue()); // 四向穿梭车编号 | 
|---|
|  |  |  | assignCommand.setTaskMode(shuttleTaskModeType.id.shortValue()); | 
|---|
|  |  |  | assignCommand.setTaskNo((short) 9999); | 
|---|
|  |  |  | assignCommand.setTaskNo((short) commonService.getWorkNo(3));//获取任务号 | 
|---|
|  |  |  | assignCommand.setAuto(false);//手动模式 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (MessageQueue.offer(SlaveType.Shuttle, shuttleSlave.getId(), new Task(3, assignCommand))) { | 
|---|