Commit 2b905f778d6570ce37ab7eeff49ba4bf882ce07d
1 parent
b1cf0bd4
跨站任务不能下发问题,起始和目标站台不能相同
Showing
2 changed files
with
4 additions
and
0 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
... | ... | @@ -329,6 +329,7 @@ public class WcsServiceImpl implements WcsService { |
329 | 329 | break; |
330 | 330 | case QuantityConstant.TASK_TYPE_WHOLERECEIPT: |
331 | 331 | case QuantityConstant.TASK_TYPE_EMPTYRECEIPT: |
332 | + case QuantityConstant.TASK_TYPE_OVER_STATION: | |
332 | 333 | case QuantityConstant.TASK_TYPE_MANY_EMPTYRECEIPT: |
333 | 334 | direction = true; |
334 | 335 | break; |
... | ... |
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
... | ... | @@ -405,6 +405,9 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea |
405 | 405 | if (toPort == null) { |
406 | 406 | return Result.error("创建跨站任务时,目标站台为空"); |
407 | 407 | } |
408 | + if (fromPortCode.equals(toPortCode)) { | |
409 | + return Result.error("创建跨站任务时,起始站台和目标站台不能相同"); | |
410 | + } | |
408 | 411 | Result result = taskHeaderService.createTaskLockContainerAndLocation(QuantityConstant.TASK_TYPE_OVER_STATION, containerCode, QuantityConstant.EMPTY_STRING, |
409 | 412 | QuantityConstant.EMPTY_STRING, warehouseCode); |
410 | 413 | if (!result.isSuccess()) { |
... | ... |