|  | @@ -136,6 +136,9 @@
 | 
	
		
			
				|  |  |          <if test="param.sortByAlbumIdDesc != null">
 | 
	
		
			
				|  |  |              left join tenant_album_music tam on tam.music_sheet_id_ = t.id_ and tam.tenant_album_id_ = #{param.sortByAlbumIdDesc} and tam.del_flag_=0
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  | +        <if test="param.auditStatus != null">
 | 
	
		
			
				|  |  | +            left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  |              t.cbs_music_sheet_id_ IS NOT NULL
 | 
	
		
			
				|  |  |              <include refid="QueryInfo"/>
 | 
	
	
		
			
				|  | @@ -461,6 +464,9 @@
 | 
	
		
			
				|  |  |          left join sys_user su on t.create_by_ = su.id_
 | 
	
		
			
				|  |  |          left join music_sheet_purchase_record mspr on mspr.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  |          left join music_favorite mf on t.id_ = mf.music_sheet_id_ and mspr.student_id_ = mf.user_id_
 | 
	
		
			
				|  |  | +        <if test="param.auditStatus != null">
 | 
	
		
			
				|  |  | +            left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  |              <include refid="QueryInfo"/>
 | 
	
		
			
				|  |  |              <if test="param.studentId != null">
 | 
	
	
		
			
				|  | @@ -492,6 +498,9 @@
 | 
	
		
			
				|  |  |          from music_sheet t
 | 
	
		
			
				|  |  |          left join sys_user su on t.create_by_ = su.id_
 | 
	
		
			
				|  |  |          left join music_favorite mf on t.id_ = mf.music_sheet_id_
 | 
	
		
			
				|  |  | +        <if test="param.auditStatus != null">
 | 
	
		
			
				|  |  | +            left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  |              <include refid="QueryInfo"/>
 | 
	
		
			
				|  |  |              <if test="clientType != null">
 | 
	
	
		
			
				|  | @@ -514,6 +523,9 @@
 | 
	
		
			
				|  |  |          ,if(mf.id_ is not null,1,0) as favorite
 | 
	
		
			
				|  |  |          from sys_music_compare_record mspr
 | 
	
		
			
				|  |  |          left join music_sheet t on mspr.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  | +        <if test="param.auditStatus != null">
 | 
	
		
			
				|  |  | +            left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          left join sys_user su on t.create_by_ = su.id_
 | 
	
		
			
				|  |  |          left join music_favorite mf on (t.id_ = mf.music_sheet_id_ and mspr.user_id_ = mf.user_id_ <if test="param.clientType != null"> AND mf.client_type_ = #{param.clientType}</if> )
 | 
	
		
			
				|  |  |          <where>
 |