Commit 45894823e8e43a34172e26e3a44805ef58e33f41

Authored by 肖超群
1 parent daf2adfb

移库不更新容器填充状态

huaheng-wms-core/src/main/java/org/jeecg/modules/wms/task/taskHeader/service/impl/TaskHeaderServiceImpl.java
... ... @@ -2250,13 +2250,17 @@ public class TaskHeaderServiceImpl extends ServiceImpl<TaskHeaderMapper, TaskHea
2250 2250 }
2251 2251 }
2252 2252 if (StringUtils.isEmpty(containerFillStatus)) {
2253   - List<InventoryDetail> inventoryDetailList = inventoryDetailService.getInventoryDetailListByContainerCode(containerCode, warehouseCode);
2254   - if (inventoryDetailList.size() > 0) {
2255   - if (!containerService.updateFillStatus(containerCode, QuantityConstant.STATUS_CONTAINER_FILL_SOME, warehouseCode)) {
2256   - throw new JeecgBootException("任务类型" + taskType + "完成任务时,更新容器填充状态失败");
  2253 + if (taskType != QuantityConstant.TASK_TYPE_TRANSFER) {
  2254 + List<InventoryDetail> inventoryDetailList = inventoryDetailService.getInventoryDetailListByContainerCode(containerCode, warehouseCode);
  2255 + if (inventoryDetailList.size() > 0) {
  2256 + if (!containerService.updateFillStatus(containerCode, QuantityConstant.STATUS_CONTAINER_FILL_SOME, warehouseCode)) {
  2257 + throw new JeecgBootException("任务类型" + taskType + "完成任务时,更新容器填充状态失败");
  2258 + }
  2259 + } else {
  2260 + if (!containerService.updateFillStatus(containerCode, QuantityConstant.STATUS_CONTAINER_FILL_EMPTY, warehouseCode)) {
  2261 + throw new JeecgBootException("任务类型" + taskType + "完成任务时,更新容器填充状态失败");
  2262 + }
2257 2263 }
2258   - } else {
2259   -
2260 2264 }
2261 2265 } else {
2262 2266 if (!containerService.updateFillStatus(containerCode, containerFillStatus, warehouseCode)) {
... ...