|
@@ -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());
|