空托出库不改托盘状态

main
Comair 9 months ago
parent 5ff9a07bd1
commit c1961c0ab1
  1. 8
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BusinOutInPlanServiceImpl.java

@ -398,12 +398,11 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl<BusinOutInPlanMapper,
//正常更新单据状态为:出库中
businOutInPlan.setPlanStatus(PlanStatusEnum.DOING.getValue());
}
this.save(businOutInPlan);
//更新当前出库的托盘状态为,空托出库中
BaseContainer baseContainer = baseContainerService.getById(containerId);
baseContainer.setStatus(ContainerStausEnum.CALL.getValue());
return baseContainerService.updateById(baseContainer)?Result.ok():Result.err();
// BaseContainer baseContainer = baseContainerService.getById(containerId);
// baseContainer.setStatus(ContainerStausEnum.CALL.getValue());
return this.save(businOutInPlan)?Result.ok():Result.err();
}
@ -605,6 +604,7 @@ public class BusinOutInPlanServiceImpl extends ServiceImpl<BusinOutInPlanMapper,
redisCache.setCacheList(RedisLockConstants.containerCode + "_" + containerCode, detailList);
sysStockDetailService.removeByIds(detailList.stream().map(x -> x.getId()).collect(Collectors.toList()));
}
//堆垛机非自动完成状态后,把redis中的ID删除,代表此任务已经完成
Long orderNo = updList.get(0).getOrderNo();
Object oneTaskOutId = redisTemplate.opsForValue().get(RedisConstant.redisTaskOutOne);

Loading…
Cancel
Save