|
|
@ -1727,6 +1727,26 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
log.warn("###########downPackage: 发送下架广播失败"); |
|
|
|
log.warn("###########downPackage: 发送下架广播失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1875,6 +1895,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R downDeliveryPackage(List<UpShelfPackageDTO> upShelfPackageList, Long warehouseId) { |
|
|
|
public R downDeliveryPackage(List<UpShelfPackageDTO> upShelfPackageList, Long warehouseId) { |
|
|
|
int num = 0; |
|
|
|
int num = 0; |
|
|
|
|
|
|
|
List<WarehouseUpdownTypeEntity> updownTypeList = new ArrayList<>(); |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
//查询包件在哪个库位上
|
|
|
|
//查询包件在哪个库位上
|
|
|
@ -1893,6 +1914,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
|
|
|
|
updownTypeList.add(updownTypeEntity); |
|
|
|
if (Func.isNotEmpty(updownTypeEntity)) { |
|
|
|
if (Func.isNotEmpty(updownTypeEntity)) { |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
@ -1944,6 +1966,27 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1960,6 +2003,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
|
|
|
|
|
|
|
|
Set<String> orderSet = new TreeSet<>(); |
|
|
|
Set<String> orderSet = new TreeSet<>(); |
|
|
|
List<String> orderPackageCodes = new ArrayList<>(); |
|
|
|
List<String> orderPackageCodes = new ArrayList<>(); |
|
|
|
|
|
|
|
List<WarehouseUpdownTypeEntity> updownTypeList = new ArrayList<>(); |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
//查询包件在哪个库位上
|
|
|
|
//查询包件在哪个库位上
|
|
|
@ -1989,6 +2033,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
|
|
|
|
updownTypeList.add(updownTypeEntity); |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
|
.eq("is_deleted", 0); |
|
|
|
.eq("is_deleted", 0); |
|
|
@ -2069,6 +2114,27 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
log.warn("###########downPackageOrDelTray: 发送下架广播失败"); |
|
|
|
log.warn("###########downPackageOrDelTray: 发送下架广播失败"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2089,7 +2155,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
orderPackageDTO.setStrings(barcodeList); |
|
|
|
orderPackageDTO.setStrings(barcodeList); |
|
|
|
List<DistributionParcelListEntity> parcelListEntitys = distributionParcelListClient.findByPacketBarCodesAndWarehouseId(orderPackageDTO); |
|
|
|
List<DistributionParcelListEntity> parcelListEntitys = distributionParcelListClient.findByPacketBarCodesAndWarehouseId(orderPackageDTO); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<WarehouseUpdownTypeEntity> updownTypeList = new ArrayList<>(); |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
for (UpShelfPackageDTO upShelfPackageDTO : upShelfPackageList) { |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
String orderPackageCode = upShelfPackageDTO.getOrderPackageCode(); |
|
|
|
//查询包件在哪个库位上
|
|
|
|
//查询包件在哪个库位上
|
|
|
@ -2128,6 +2194,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
|
|
|
|
updownTypeList.add(updownTypeEntity); |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<WarehouseTaryAllocationEntity> taryAllocationEntityQueryWrapper = new QueryWrapper<>(); |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
|
taryAllocationEntityQueryWrapper.eq("allocation_id", allocationId) |
|
|
|
.eq("is_deleted", 0); |
|
|
|
.eq("is_deleted", 0); |
|
|
@ -2186,10 +2253,27 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
return Resp.scanSuccess("下架成功", "成功下架" + num + "件"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2198,6 +2282,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
public R downZeroOrder(List<UpShelfZeroOrderDTO> upShelfPackageList, Long warehouseId, String remark) { |
|
|
|
public R downZeroOrder(List<UpShelfZeroOrderDTO> upShelfPackageList, Long warehouseId, String remark) { |
|
|
|
StringBuffer stringBuffer = new StringBuffer("下架零担订单成功"); |
|
|
|
StringBuffer stringBuffer = new StringBuffer("下架零担订单成功"); |
|
|
|
boolean b = false; |
|
|
|
boolean b = false; |
|
|
|
|
|
|
|
List<WarehouseUpdownTypeEntity> updownTypeList = new ArrayList<>(); |
|
|
|
Integer allNum = 0; |
|
|
|
Integer allNum = 0; |
|
|
|
for (UpShelfZeroOrderDTO upShelfZeroOrderDTO : upShelfPackageList) { |
|
|
|
for (UpShelfZeroOrderDTO upShelfZeroOrderDTO : upShelfPackageList) { |
|
|
|
List<WarehouseUpdownGoodsEntity> updownGoodsList = new ArrayList<>(); |
|
|
|
List<WarehouseUpdownGoodsEntity> updownGoodsList = new ArrayList<>(); |
|
|
@ -2228,6 +2313,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
|
|
|
|
updownTypeList.add(updownTypeEntity); |
|
|
|
updownGoodsList.add(updownGoodsEntity); |
|
|
|
updownGoodsList.add(updownGoodsEntity); |
|
|
|
if (enterNum.equals(num)) { |
|
|
|
if (enterNum.equals(num)) { |
|
|
|
if (!Objects.isNull(trayEntity)) { |
|
|
|
if (!Objects.isNull(trayEntity)) { |
|
|
@ -2288,6 +2374,26 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
//更新货位缓存
|
|
|
|
//更新货位缓存
|
|
|
|
warehouseGoodsAllocationClient.updateAllocationCache(allocationId.toString()); |
|
|
|
warehouseGoodsAllocationClient.updateAllocationCache(allocationId.toString()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (b) { |
|
|
|
if (b) { |
|
|
|
stringBuffer.append("超出输入数量,或输入数量为0,请输入正确数量再进行操作"); |
|
|
|
stringBuffer.append("超出输入数量,或输入数量为0,请输入正确数量再进行操作"); |
|
|
|
} |
|
|
|
} |
|
|
@ -2321,6 +2427,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
public R downStock(List<UpShelfStockDTO> upShelfStockList, Long warehouseId, String remark) { |
|
|
|
public R downStock(List<UpShelfStockDTO> upShelfStockList, Long warehouseId, String remark) { |
|
|
|
StringBuffer stringBuffer = new StringBuffer("下架库存品成功"); |
|
|
|
StringBuffer stringBuffer = new StringBuffer("下架库存品成功"); |
|
|
|
boolean b = false; |
|
|
|
boolean b = false; |
|
|
|
|
|
|
|
List<WarehouseUpdownTypeEntity> updownTypeList = new ArrayList<>(); |
|
|
|
Integer allNum = 0; |
|
|
|
Integer allNum = 0; |
|
|
|
for (UpShelfStockDTO upShelfStockDTO : upShelfStockList) { |
|
|
|
for (UpShelfStockDTO upShelfStockDTO : upShelfStockList) { |
|
|
|
List<WarehouseUpdownGoodsEntity> updownGoodsList = new ArrayList<>(); |
|
|
|
List<WarehouseUpdownGoodsEntity> updownGoodsList = new ArrayList<>(); |
|
|
@ -2356,7 +2463,7 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownGoodsId = updownGoodsEntity.getId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
Long updownTypeId = updownGoodsEntity.getUpdownTypeId(); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
WarehouseUpdownTypeEntity updownTypeEntity = baseMapper.selectById(updownTypeId); |
|
|
|
|
|
|
|
updownTypeList.add(updownTypeEntity); |
|
|
|
updownGoodsList.add(updownGoodsEntity); |
|
|
|
updownGoodsList.add(updownGoodsEntity); |
|
|
|
if (enterNum.equals(num)) { |
|
|
|
if (enterNum.equals(num)) { |
|
|
|
if (!Objects.isNull(trayEntity)) { |
|
|
|
if (!Objects.isNull(trayEntity)) { |
|
|
@ -2442,6 +2549,27 @@ public class WarehouseUpdownTypeServiceImpl extends BaseServiceImpl<WarehouseUpd |
|
|
|
updateUpdownTypeNum(updownTypeEntity); |
|
|
|
updateUpdownTypeNum(updownTypeEntity); |
|
|
|
allNum = allNum + enterNum; |
|
|
|
allNum = allNum + enterNum; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try{ |
|
|
|
|
|
|
|
updownTypeList.forEach(updownTypeEntity -> { |
|
|
|
|
|
|
|
Long updownTypeId = updownTypeEntity.getId(); |
|
|
|
|
|
|
|
Integer reNum = warehouseUpdownGoodsService.findNumByUpdownTypeId(updownTypeId); |
|
|
|
|
|
|
|
if(reNum == 0){ |
|
|
|
|
|
|
|
removeById(updownTypeId); |
|
|
|
|
|
|
|
Long allocationId = updownTypeEntity.getAllocationId(); |
|
|
|
|
|
|
|
WarehouseTaryAllocationEntity taryAllocationEntity = warehouseTaryAllocationService.findEntityByAllocationId(allocationId); |
|
|
|
|
|
|
|
if(!Objects.isNull(taryAllocationEntity)){ |
|
|
|
|
|
|
|
//修改库位状态为空闲
|
|
|
|
|
|
|
|
basicdataGoodsAllocationClient.updateAllocationStatus(allocationId, "1"); |
|
|
|
|
|
|
|
warehouseTaryAllocationService.deleteById(taryAllocationEntity); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}catch (Exception e){ |
|
|
|
|
|
|
|
log.warn("###########downPackage: 补充下架失败"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (b) { |
|
|
|
if (b) { |
|
|
|
stringBuffer.append("超出输入数量,或输入数量为0,请输入正确数量再进行操作"); |
|
|
|
stringBuffer.append("超出输入数量,或输入数量为0,请输入正确数量再进行操作"); |
|
|
|
} |
|
|
|
} |
|
|
|