|
|
|
@ -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"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|