Commit 3f16f976712467db4cb8487109a345d2a740c71f
1 parent
568748db
整出类型的任务 不能分配库位
Showing
1 changed file
with
4 additions
and
0 deletions
huaheng-wms-core/src/main/java/org/jeecg/modules/wms/api/wcs/service/WcsServiceImpl.java
... | ... | @@ -139,6 +139,10 @@ public class WcsServiceImpl implements WcsService { |
139 | 139 | return Result.error("分配库位时,任务已经完成不能再分库位"); |
140 | 140 | } |
141 | 141 | int taskType = taskHeader.getTaskType(); |
142 | + if (taskType == QuantityConstant.TASK_TYPE_WHOLESHIPMENT || taskType == QuantityConstant.TASK_TYPE_EMPTYSHIPMENT | |
143 | + || taskType == QuantityConstant.TASK_TYPE_MANY_EMPTYSHIPMENT) { | |
144 | + return Result.error("分配库位时,整出类型的任务不需要分配库位"); | |
145 | + } | |
142 | 146 | String containerCode = taskHeader.getContainerCode(); |
143 | 147 | String toLocationCode = taskHeader.getToLocationCode(); |
144 | 148 | if (StringUtils.isNotEmpty(toLocationCode)) { |
... | ... |