liujc 7 months ago
parent
commit
25b0d1510f

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

@@ -1158,9 +1158,9 @@
         ms.audit_status_ = 'PASS',
         ms.tenant_state_ = #{item.status},
         ms.tenant_notation_ = #{item.isConvertibleScore},
-        ms.provider_type_ = CASE WHEN ms.provider_type_ is null or ms.provider_type_ = '' THEN 'PLATFORM'
-        when find_in_set(#{item.availableType},ms.provider_type_) then ms.provider_type_
-        else concat(ms.provider_type_,',',#{item.availableType}) end
+        ms.provider_type_ = CASE WHEN ms.provider_type_ is null or ms.provider_type_ = '' THEN 'TENANT'
+        when find_in_set('TENANT',ms.provider_type_) then ms.provider_type_
+        else concat(ms.provider_type_,',','TENANT') end
         <if test="item.musicSheetUpdate != null">
             ,ms.music_sheet_name_ = #{item.musicSheetUpdate.name},
             ms.music_subject_ = #{item.musicSheetUpdate.subjectIds},
@@ -1193,8 +1193,8 @@
         ms.client_state_ = #{item.status},
         ms.notation_ = #{item.isConvertibleScore},
         ms.provider_type_ = CASE WHEN ms.provider_type_ is null or ms.provider_type_ = '' THEN 'PLATFORM'
-                            when find_in_set(#{item.availableType},ms.provider_type_) then ms.provider_type_
-                            else concat(ms.provider_type_,',',#{item.availableType}) end
+                            when find_in_set('PLATFORM',ms.provider_type_) then ms.provider_type_
+                            else concat(ms.provider_type_,',','PLATFORM') end
         <if test="item.musicSheetUpdate != null">
             ,ms.music_sheet_name_ = #{item.musicSheetUpdate.name}
             ,ms.platform_state_ = #{item.musicSheetUpdate.platformStatus},