Commit 8a304901ee9501a895551babc92ad1ffca7a23a4

Authored by 周鸿
1 parent cec24f52

fix(完成任务):分拣和补充入库,源库位清空;

src/main/java/com/huaheng/pc/task/taskHeader/service/ShipmentTaskService.java
... ... @@ -539,9 +539,11 @@ public class ShipmentTaskService {
539 539 locationService.updateById(toLocationRecord);
540 540 }
541 541 if (warehouseCode.equals(QuantityConstant.WAREHOUSE_XZ) && (taskType.equals(QuantityConstant.TASK_TYPE_SORTINGSHIPMENT) || taskType.equals(QuantityConstant.TASK_TYPE_SUPPLEMENTRECEIPT))) {
542   - fromLocationRecord.setContainerCode("");
543   - fromLocationRecord.setStatus(QuantityConstant.STATUS_LOCATION_EMPTY);
544   - locationService.updateById(fromLocationRecord);
  542 + if (fromLocationRecord.getZoneCode().equals("LK")) {
  543 + fromLocationRecord.setContainerCode("");
  544 + fromLocationRecord.setStatus(QuantityConstant.STATUS_LOCATION_EMPTY);
  545 + locationService.updateById(fromLocationRecord);
  546 + }
545 547 }
546 548 Container container = containerService.getContainerByCode(containerCode, warehouseCode);
547 549 if (StringUtils.isEmpty(containerCode)) {
... ...