Commit daf2adfb2e68bfe7cc8b5b287da25d4fb90311d7

Authored by 肖超群
1 parent a83c563c

修复托盘状态问题

huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
... ... @@ -2256,9 +2256,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea
2256 2256 throw new JeecgBootException("任务类型" + taskType + "完成任务时,更新容器填充状态失败");
2257 2257 }
2258 2258 } else {
2259   - if (!containerService.updateFillStatus(containerCode, QuantityConstant.STATUS_CONTAINER_FILL_EMPTY, warehouseCode)) {
2260   - throw new JeecgBootException("任务类型" + taskType + "完成任务时,更新容器填充状态失败");
2261   - }
  2259 +
2262 2260 }
2263 2261 } else {
2264 2262 if (!containerService.updateFillStatus(containerCode, containerFillStatus, warehouseCode)) {
... ... @@ -3253,7 +3251,7 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea
3253 3251 return Result.error("完成空托盘组出库任务时," + fromLocationCode + "起始库位不存在");
3254 3252 }
3255 3253 String zoneCode = fromLocation.getZoneCode();
3256   - Port port = portService.getPortByCode(toPortCode, QuantityConstant.PORT_TYPE_OUT, zoneCode, warehouseCode);
  3254 + Port port = portService.getPortByCode(toPortCode, QuantityConstant.PORT_TYPE_MANY_EMPTY_OUT, zoneCode, warehouseCode);
3257 3255 if (port == null) {
3258 3256 return Result.error("完成空托盘组出库任务时,没有找到出入口" + toPortCode);
3259 3257 }
... ...