liujc 7 months ago
parent
commit
beb64a96b4

+ 5 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

@@ -1222,7 +1222,7 @@
         (cbs_music_sheet_id_,tenant_sort_number_,tenant_score_type_,tenant_state_,tenant_notation_,tenant_category_id_
         ,music_sheet_name_,music_subject_,music_svg_,composer_,accompaniment_type_,play_speed_,
         music_sheet_type_,provider_type_,audio_type_,show_fingering_,
-        can_evaluate_,create_by_,user_id_,audit_status_,upload_time_
+        can_evaluate_,create_by_,user_id_,audit_status_,upload_time_,source_type_
         )
         values
             (#{item.musicSheetId},
@@ -1243,7 +1243,10 @@
             #{item.musicSheetUpdate.userId},
             'PASS',
 
-        #{item.musicSheetUpdate.createTime}
+        #{item.musicSheetUpdate.createTime},
+        CASE WHEN #{item.musicSheetUpdate.sourceType} = 'PLATFORM' THEN 'PLATFORM'
+        WHEN #{item.musicSheetUpdate.sourceType} = 'PERSON' THEN 'TEACHER'
+        ELSE 'TENANT' END
             )
     </insert>