|
|
|
@ -1992,6 +1992,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
// stockArticleEntity.setReservationStatus("10");
|
|
|
|
|
// }
|
|
|
|
|
List<BasicdataWarehouseEntity> myWarehouseList = warehouseClient.getMyWarehouseList(); |
|
|
|
|
BasicdataWarehouseEntity currentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
List<Long> collect = myWarehouseList.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
if (collect.size() > 1) { |
|
|
|
@ -1999,6 +2000,10 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} else if (collect.size() == 1) { |
|
|
|
|
stockArticleEntity.setWarehouseId(collect.get(0)); |
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(currentWarehouse)){ |
|
|
|
|
stockArticleEntity.setWarehouseIdList(null); |
|
|
|
|
stockArticleEntity.setWarehouseId(currentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
|
IPage<DistributionSignforStockArticleVO> distributionStockArticleEntityIPage = baseMapper.pageSignforListOwe(page, stockArticleEntity); |
|
|
|
|
//处理创建人
|
|
|
|
|
distributionStockArticleEntityIPage.getRecords().forEach(a -> { |
|
|
|
|