|  |  |  | 
|---|
|  |  |  | if (motionList.isEmpty()) { | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo())); | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo()), task.getHostId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 更新工作主档 | 
|---|
|  |  |  | task.setTaskSts(TaskStsType.ANALYZE_INBOUND.sts); // 工作状态 | 
|---|
|  |  |  | 
|---|
|  |  |  | log.error("出库 ===>> 暂时没有空闲小车, 任务号={}", task.getTaskNo()); | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo())); | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo()), task.getHostId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 更新工作主档 | 
|---|
|  |  |  | task.setTaskSts(TaskStsType.ANALYZE_OUTBOUND.sts); // 工作状态 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // generate motion list | 
|---|
|  |  |  | List<Motion> motionList = analyzeService.generateMotion(task); | 
|---|
|  |  |  | List<Motion> motionList = analyzeService.generateShuttleMoveMotion(task); | 
|---|
|  |  |  | if (motionList.isEmpty()) { | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo())); | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo()), task.getHostId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 更新工作主档 | 
|---|
|  |  |  | task.setTaskSts(TaskStsType.ANALYZE_MOVE.sts); // 工作状态 | 
|---|
|  |  |  | 
|---|
|  |  |  | News.error("保存{}号四向穿梭车充电任务失败!!!", device.getDeviceNo()); | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo())); | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo()), task.getHostId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | task.setTaskSts(TaskStsType.ANALYZE_CHARGE.sts); | 
|---|
|  |  |  | if (!taskService.save(task)) { | 
|---|
|  |  |  | 
|---|
|  |  |  | News.error("保存{}号四向穿梭车迁移任务失败!!!", device.getDeviceNo()); | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo())); | 
|---|
|  |  |  | motionService.batchInsert(motionList, task.getUuid(), Integer.valueOf(task.getTaskNo()), task.getHostId()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | task.setTaskSts(TaskStsType.ANALYZE_MOVE.sts); | 
|---|
|  |  |  |  | 
|---|