|
@@ -1184,6 +1184,8 @@
|
|
|
<update id="updatePlatformByCbsId">
|
|
|
update music_sheet ms set
|
|
|
ms.music_tag_ = #{item.musicTagIds},ms.payment_type_ = #{item.paymentType},
|
|
|
+ ms.first_pass_audit_time_ = IF((#{item.musicSheetUpdate.sourceType} = 'PERSON' and ms.first_pass_audit_time_ is null) or !find_in_set('PLATFORM',ms.provider_type_),
|
|
|
+ now(), ms.first_pass_audit_time_),
|
|
|
ms.charge_type_ = #{item.paymentType},
|
|
|
ms.music_price_ = #{item.musicPrice},ms.top_flag_ = #{item.topFlag},
|
|
|
ms.exquisite_flag_ = #{item.exquisiteFlag},ms.sort_number_ = #{item.sortNo},ms.del_flag_ = 0,
|
|
@@ -1210,9 +1212,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.first_pass_audit_time_ = IF((#{item.musicSheetUpdate.sourceType} = 'PERSON' and ms.first_pass_audit_time_ is null) or !find_in_set('PLATFORM',ms.provider_type_),
|
|
|
- now(), ms.first_pass_audit_time_)
|
|
|
+ WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER' ELSE 'TENANT' END
|
|
|
</if>
|
|
|
where ms.cbs_music_sheet_id_ = #{item.musicSheetId}
|
|
|
</update>
|