Explorar o código

酷乐秀曲目来源改为内容平台

zouxuan hai 9 meses
pai
achega
4e660af3a5

+ 5 - 0
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetAuthRecordServiceImpl.java

@@ -2,6 +2,7 @@ package com.yonge.cooleshow.biz.dal.service.impl;
 
 import com.alibaba.fastjson.JSON;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.core.toolkit.IdWorker;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.dayaedu.cbs.openfeign.client.MusicFeignClientService;
 import com.dayaedu.cbs.openfeign.wrapper.music.CbsMusicSheetApplicationExtendClientWrapper;
@@ -91,10 +92,14 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
             CbsMusicSheetWrapper.MusicSheetExtend musicSheetExtend = new CbsMusicSheetWrapper.MusicSheetExtend();
             musicSheetExtend.setApplicationId(applicationId);
             musicSheetExtend.setUserId(addMusicSheet.getCreateBy());
+            addMusicSheet.setSendAppFlag(true);
             addMusicSheet.setMusicSheetExtend(musicSheetExtend);
             addMusicSheet.setMusicImg(param.getMusicImg());
             addMusicSheet.setMusicFirstImg(param.getMusicFirstImg());
             addMusicSheet.setMusicJianImg(param.getMusicJianImg());
+            if(musicSheet.getCbsMusicSheetId() == null){
+                musicSheet.setCbsMusicSheetId(IdWorker.getId());
+            }
             addMusicSheet.setId(musicSheet.getCbsMusicSheetId());
             musicFeignClientService.musicSheetAdd(addMusicSheet);
         }else {