| | |
| | | case MOVE: |
| | | Code endCode = null; |
| | | if (!Cools.isEmpty(param.getEndCode())) { |
| | | endCode = codeService.getById(param.getEndCode()); |
| | | endCode = codeService.getCacheById(param.getEndCode()); |
| | | } |
| | | if (!Cools.isEmpty(param.getEndCodeStr())) { |
| | | endCode = codeService.selectByData(param.getEndCodeStr()); |
| | | endCode = codeService.getCacheByData(param.getEndCodeStr()); |
| | | } |
| | | if (null == endCode) { |
| | | return R.error(); |
| | | } |
| | | if (!mainLockWrapService.buildMinorTask(agv, param.getTaskMode(), endCode.getData(), null)) { |
| | | if (!mainLockWrapService.buildMinorTask(agv.getId(), param.getTaskMode(), endCode.getData(), null)) { |
| | | return R.error(); |
| | | } |
| | | break; |
| | | case TO_CHARGE: |
| | | case TO_STANDBY: |
| | | if (!mainLockWrapService.buildMinorTask(agv, param.getTaskMode(), null, null)) { |
| | | if (!mainLockWrapService.buildMinorTask(agv.getId(), param.getTaskMode(), null, null)) { |
| | | return R.error(); |
| | | } |
| | | break; |