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