|  |  |  | 
|---|
|  |  |  | PageInfo<AssetStatisticsDetailVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); | 
|---|
|  |  |  | List<AssetStatisticsDetailVO> list = this.baseMapper.pageListInventoryDetail(query,pageInfo); | 
|---|
|  |  |  | List<AssetType> assetTypes = assetTypeService.list(); | 
|---|
|  |  |  | Map<Integer, AssetType> typeMap = assetTypes.stream().collect(Collectors.toMap(AssetType::getId, e -> e)); | 
|---|
|  |  |  | for (AssetStatisticsDetailVO assetStatisticsDetailVO : list) { | 
|---|
|  |  |  | AssetType child = typeMap.get(assetStatisticsDetailVO.getAssetTypeId()); | 
|---|
|  |  |  | if (child!=null){ | 
|---|
|  |  |  | AssetType parent = typeMap.get(child.getParentId()); | 
|---|
|  |  |  | if (parent!=null){ | 
|---|
|  |  |  | assetStatisticsDetailVO.setAssetTypeName(parent.getTypeName()+">"+child.getTypeName()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Integer type = assetStatisticsDetailVO.getType(); | 
|---|
|  |  |  | if (type==0){ | 
|---|
|  |  |  | String typeName = "入库"; | 
|---|