Browse Source

备货库位上架、下架维护库位状态

dist.1.3.0
汤建军 9 months ago
parent
commit
cd4251b208
  1. 13
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java

13
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseUpdownStockupAreaServiceImpl.java

@ -102,6 +102,7 @@ public class WarehouseUpdownStockupAreaServiceImpl extends BaseServiceImpl<Wareh
private final IDistributionStockClient distributionStockClient;
/**
* @param code
* @param stockUpAllocationId
@ -215,8 +216,8 @@ public class WarehouseUpdownStockupAreaServiceImpl extends BaseServiceImpl<Wareh
warehouseUpdownStockupAreaLogEntity.setBindingType(1);
warehouseUpdownStockupAreaLogEntity.setNum(num);
warehouseUpdownStockupAreaLogService.save(warehouseUpdownStockupAreaLogEntity);
//修改库位状态
basicdataGoodsAllocationClient.updateAllocationStatus(stockUpAllocationId,"2");
return null;
}
@ -324,7 +325,13 @@ public class WarehouseUpdownStockupAreaServiceImpl extends BaseServiceImpl<Wareh
default:
log.error(method + "type错误type:{}", type);
}
warehouseUpdownStockupAreaLogService.saveBatch(warehouseUpdownStockupAreaLogEntities);
//查询当前备货库位上是否存在货物,如果不存在货物了则进行空闲标记
List<WarehouseUpdownStockupAreaEntity> list = this.list(Wrappers.<WarehouseUpdownStockupAreaEntity>query().lambda()
.eq(WarehouseUpdownStockupAreaEntity::getAllocationId, stockUpAllocationId)
);
if (list.isEmpty()){
basicdataGoodsAllocationClient.updateAllocationStatus(Long.parseLong(stockUpAllocationId),"1");
}
}
}

Loading…
Cancel
Save