| 
					
				 | 
			
			
				@@ -414,6 +414,11 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .eq(TenantGroupAlbum::getDelFlag, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .eq(TenantGroupAlbum::getStatus, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .list(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (CollectionUtils.isEmpty(list)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    album.setTenantAlbumStatus(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    album.setTenantAlbumFlag(YesOrNoEnum.NO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return album; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 // 专辑ID集合 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 tenantAlbumIds = list.stream().map(TenantGroupAlbum::getTenantAlbumId).distinct().collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -572,13 +577,14 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtils.isNotEmpty(ifedBuy)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             album.setIfBuy(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             album.setTenantAlbumStatus(2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tenantAlbumIds = ifedBuy; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             album.setIfBuy(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //查询对应专辑的详情 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        TenantAlbum tenantAlbum = albumList.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        TenantAlbum tenantAlbum = albumList.get(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //机构专辑曲目数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<TenantAlbumMusic> list = tenantAlbumMusicMapper.getByAlbumAndEnable(tenantAlbumIds); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -624,15 +630,15 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         album.setEnsembleCounts(ensembleSize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         album.setMusicCounts(musicSize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         album.setSubjectCounts(subjectSize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setId(String.valueOf(tenantAlbum.getId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setName(tenantAlbum.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setCoverImg(tenantAlbum.getCoverImg()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setId(String.valueOf(tenantAlbum.getId())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setName(tenantAlbum.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setCoverImg(tenantAlbum.getCoverImg()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         album.setMusicNum(size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setDescribe(tenantAlbum.getDescribe()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setDescribe(tenantAlbum.getDescribe()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         album.setSubjectTypes(subjectTypes.stream().collect(Collectors.joining(","))); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setCostPrice(tenantAlbum.getCostPrice()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setPurchaseCycle(tenantAlbum.getPurchaseCycle()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        album.setSalePrice(tenantAlbum.getSalePrice()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setCostPrice(tenantAlbum.getCostPrice()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setPurchaseCycle(tenantAlbum.getPurchaseCycle()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//        album.setSalePrice(tenantAlbum.getSalePrice()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return album; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -675,9 +681,26 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<UserTenantAlbumRecordWrapper.UserTenantAlbumRecord> list(UserTenantAlbumRecordWrapper.UserTenantAlbumRecordQuery query) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        List<Long> tenantAlbumIdList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        Long tenantGroupId = query.getTenantGroupId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (tenantGroupId != null) { // 学生只看小组下的专辑列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            QueryWrapper<TenantGroupAlbum> queryWrapper = new QueryWrapper<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            queryWrapper.lambda() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(TenantGroupAlbum::getTenantGroupId, tenantGroupId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(TenantGroupAlbum::getDelFlag, false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(TenantGroupAlbum::getStatus, true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<TenantGroupAlbum> tenantGroupAlbums = tenantGroupAlbumMapper.selectList(queryWrapper); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (CollectionUtils.isEmpty(tenantGroupAlbums)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            tenantAlbumIdList = tenantGroupAlbums.stream().map(TenantGroupAlbum::getTenantAlbumId).distinct().collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<UserTenantAlbumRecord> list = this.lambdaQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .eq(UserTenantAlbumRecord::getUserId, query.getUserId()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .ge(query.getEndTime() != null, UserTenantAlbumRecord::getEndTime, query.getEndTime()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .in(CollectionUtils.isNotEmpty(tenantAlbumIdList), UserTenantAlbumRecord::getTenantAlbumId, tenantAlbumIdList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .list(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (list.size() == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return new ArrayList<>(); 
			 |