| 
					
				 | 
			
			
				@@ -909,10 +909,11 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public UserTenantAlbumRecordWrapper.LastUserTenantAlbumRecord last(Long userId,Long albumId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public UserTenantAlbumRecordWrapper.LastUserTenantAlbumRecord last(Long userId,Long tenantId,Long albumId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //获取最近有效期最近的一条记录,(没过期) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<UserTenantAlbumRecord> albumRecords = this.lambdaQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .eq(UserTenantAlbumRecord::getUserId, userId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                .eq(UserTenantAlbumRecord::getTenantId, tenantId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .eq(UserTenantAlbumRecord::getEfficientFlag, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .eq(UserTenantAlbumRecord::getDeductionStatus, EDeductionStatus.EFFECTIVE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 .eq(albumId != null, UserTenantAlbumRecord::getTenantAlbumId, albumId).list(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -934,6 +935,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UserTenantAlbumRecord record = this.lambdaQuery() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .eq(UserTenantAlbumRecord::getUserId, userId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .eq(UserTenantAlbumRecord::getEfficientFlag, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    .eq(UserTenantAlbumRecord::getTenantId, tenantId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .lt(UserTenantAlbumRecord::getEndTime, new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .eq(albumId != null, UserTenantAlbumRecord::getTenantAlbumId, albumId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .orderByDesc(UserTenantAlbumRecord::getEndTime) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -949,6 +951,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (albumId == null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 TenantAlbum tenantAlbum = tenantAlbumService.getById(tenantAlbumId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 lastUserTenantAlbumRecord.setTenantAlbumName(tenantAlbum.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                lastUserTenantAlbumRecord.setTenantAlbumId(tenantAlbumId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             lastUserTenantAlbumRecord.setEndTime(endTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |