|
|
@ -87,6 +87,7 @@ public class DistributionStockupAppController extends BladeController { |
|
|
|
private final IDistributionStockArticleService distributionStockArticleService; |
|
|
|
private final IDistributionStockArticleService distributionStockArticleService; |
|
|
|
private final IDistributionParcelListService distributionParcelListService; |
|
|
|
private final IDistributionParcelListService distributionParcelListService; |
|
|
|
private final IDistributionReservationPackageService distributionReservationPackageService; |
|
|
|
private final IDistributionReservationPackageService distributionReservationPackageService; |
|
|
|
|
|
|
|
private final IDistributionReservationStocklistService distributionReservationStocklistService; |
|
|
|
private final IWarehouseUpdownGoodsClient warehouseUpdownGoodsClient; |
|
|
|
private final IWarehouseUpdownGoodsClient warehouseUpdownGoodsClient; |
|
|
|
private final IWarehouseUpdownGoodsLogClient warehouseUpdownGoodsLogClient; |
|
|
|
private final IWarehouseUpdownGoodsLogClient warehouseUpdownGoodsLogClient; |
|
|
|
private final IWarehouseGoodsAllocationClient warehouseGoodsAllocationClient; |
|
|
|
private final IWarehouseGoodsAllocationClient warehouseGoodsAllocationClient; |
|
|
@ -465,6 +466,12 @@ public class DistributionStockupAppController extends BladeController { |
|
|
|
log.warn("############备货库存品ID为空:{}",stockupDTO.getDeliveryDetailsId()); |
|
|
|
log.warn("############备货库存品ID为空:{}",stockupDTO.getDeliveryDetailsId()); |
|
|
|
return R.fail(3002, "备货库存品ID不能为空"); |
|
|
|
return R.fail(3002, "备货库存品ID不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//查询库存品信息
|
|
|
|
|
|
|
|
DistributionReservationStocklistEntity byId = distributionReservationStocklistService.getById(stockupDTO.getDeliveryDetailsId()); |
|
|
|
|
|
|
|
if(ObjectUtils.isNotNull(byId)){ |
|
|
|
|
|
|
|
DistributionStockListEntity byId1 = iDistributionStockListService.getById(byId.getStocklistId()); |
|
|
|
|
|
|
|
if(byId1.getSourceType().equals("2")){ |
|
|
|
|
|
|
|
//导入
|
|
|
|
List<DistributionStockupTrayVO> list = distributionStockupService.getLocationSelection(stockupDTO); //自提
|
|
|
|
List<DistributionStockupTrayVO> list = distributionStockupService.getLocationSelection(stockupDTO); //自提
|
|
|
|
if(!list.isEmpty() && ObjectUtils.isNotNull(list.get(0))){ |
|
|
|
if(!list.isEmpty() && ObjectUtils.isNotNull(list.get(0))){ |
|
|
|
return R.data(list); |
|
|
|
return R.data(list); |
|
|
@ -473,6 +480,21 @@ public class DistributionStockupAppController extends BladeController { |
|
|
|
if(!listMarket.isEmpty() && ObjectUtils.isNotNull(listMarket.get(0))){ |
|
|
|
if(!listMarket.isEmpty() && ObjectUtils.isNotNull(listMarket.get(0))){ |
|
|
|
return R.data(listMarket); |
|
|
|
return R.data(listMarket); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
//订单
|
|
|
|
|
|
|
|
List<DistributionStockupTrayVO> list = distributionStockupService.getLocationSelectionOrder(stockupDTO); //自提
|
|
|
|
|
|
|
|
if(!list.isEmpty() && ObjectUtils.isNotNull(list.get(0))){ |
|
|
|
|
|
|
|
return R.data(list); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
List<DistributionStockupTrayVO> listMarket = distributionStockupService.getLocationMarketSelectionOrder(stockupDTO); //商配
|
|
|
|
|
|
|
|
if(!listMarket.isEmpty() && ObjectUtils.isNotNull(listMarket.get(0))){ |
|
|
|
|
|
|
|
return R.data(listMarket); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Resp.scanFail("当前待备货的库存品未上架,请上架后在继续备货操作!!!","当前待备货的库存品未上架,请上架后在继续备货操作!!!"); |
|
|
|
return Resp.scanFail("当前待备货的库存品未上架,请上架后在继续备货操作!!!","当前待备货的库存品未上架,请上架后在继续备货操作!!!"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -733,7 +755,7 @@ public class DistributionStockupAppController extends BladeController { |
|
|
|
WarehouseUpdownGoodsEntity warehouseUpdownGoodsEntity = new WarehouseUpdownGoodsEntity(); |
|
|
|
WarehouseUpdownGoodsEntity warehouseUpdownGoodsEntity = new WarehouseUpdownGoodsEntity(); |
|
|
|
warehouseUpdownGoodsEntity.setAllocationId(stockupDTO.getAllocationId()); |
|
|
|
warehouseUpdownGoodsEntity.setAllocationId(stockupDTO.getAllocationId()); |
|
|
|
warehouseUpdownGoodsEntity.setAssociationId(list.get(0).getId()); |
|
|
|
warehouseUpdownGoodsEntity.setAssociationId(list.get(0).getId()); |
|
|
|
warehouseUpdownGoodsEntity.setAssociationType("4"); |
|
|
|
warehouseUpdownGoodsEntity.setAssociationType("3"); |
|
|
|
warehouseUpdownGoodsEntity.setWarehouseId(byId.getWarehouseId()); |
|
|
|
warehouseUpdownGoodsEntity.setWarehouseId(byId.getWarehouseId()); |
|
|
|
locationInformation = warehouseUpdownGoodsClient.getLocationStockListInformation(warehouseUpdownGoodsEntity); |
|
|
|
locationInformation = warehouseUpdownGoodsClient.getLocationStockListInformation(warehouseUpdownGoodsEntity); |
|
|
|
if(locationInformation.isEmpty()){ |
|
|
|
if(locationInformation.isEmpty()){ |
|
|
|