| 
					
				 | 
			
			
				@@ -118,9 +118,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             CASE WHEN #{item.musicSheetUpdate.sourceType} = 'PLATFORM' THEN 'PLATFORM' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ELSE 'TENANT' END, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            CASE WHEN #{item.musicSheetUpdate.sourceType} = 'PLATFORM' THEN 'PLATFORM' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ELSE 'TENANT' END, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            CASE WHEN #{item.availableType} = 'PLATFORM' THEN 'PLATFORM' ELSE 'TENANT' END, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             #{item.musicSheetUpdate.playMode}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             #{item.musicSheetUpdate.showFingering}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             #{item.musicSheetUpdate.canEvaluate}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -140,6 +138,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <include refid="QueryInfo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.auditStatus == null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AND t.cbs_music_sheet_id_ IS NOT NULL 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -421,6 +420,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <include refid="QueryInfo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.auditVersion != null "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and #{param.auditVersion} = t.audit_version_ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -464,6 +464,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <include refid="QueryInfo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.studentId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and mspr.student_id_ = #{param.studentId} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -498,6 +499,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <include refid="QueryInfo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="clientType != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AND mf.client_type_ = #{clientType} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -525,6 +527,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         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> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            1=1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <include refid="QueryInfo"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="practiceMusicIdList != null and practiceMusicIdList.size() != 0"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and mspr.id_ in 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -846,7 +849,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ms.music_price_ = #{item.musicPrice},ms.top_flag_ = #{item.topFlag}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ms.exquisite_flag_ = #{item.exquisiteFlag},ms.sort_number_ = #{item.sortNo},ms.del_flag_ = 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ms.audit_status_ = 'PASS', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ms.state_ = #{item.status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ms.state_ = #{item.status}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ms.provider_type_ = CASE WHEN #{item.availableType} = 'PLATFORM' THEN 'PLATFORM' ELSE 'TENANT' END 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="item.musicSheetUpdate != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ,ms.music_sheet_name_ = #{item.musicSheetUpdate.name}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ms.music_subject_ = #{item.musicSheetUpdate.subjectIds}, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -862,11 +866,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ms.show_fingering_ = #{item.musicSheetUpdate.showFingering}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ms.can_evaluate_ = #{item.musicSheetUpdate.canEvaluate}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ms.source_type_ = CASE WHEN #{item.musicSheetUpdate.sourceType} = 'PLATFORM' THEN 'PLATFORM' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ELSE 'TENANT' END, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ms.provider_type_ = CASE WHEN #{item.musicSheetUpdate.sourceType} = 'PLATFORM' THEN 'PLATFORM' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ELSE 'TENANT' END 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' ELSE 'TENANT' END 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             where ms.cbs_music_sheet_id_ = #{item.musicSheetId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </foreach> 
			 |