Browse Source

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

zouxuan 1 year ago
parent
commit
59ba7430e8

+ 7 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/MusicSheetServiceImpl.java

@@ -562,7 +562,13 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
 
     @Override
     public MusicSheetDetailVo detail(Long id, SysUser sysUser, ClientEnum userType,String tenantAlbumId) {
-
+        MusicSheetDetailVo detailVo = baseMapper.detail(id);
+        if (detailVo == null) {
+            throw new BizException("未找到曲目信息");
+        }
+        if(detailVo.getDelFlag()){
+            return detailVo;
+        }
         MusicSheetDetailVo detail = this.getCbsDetail(id);
         // 设置收藏人数
         detail.setFavoriteCount(detail.getFavoriteCount() + detail.getVirtualNumber());