|
@@ -592,7 +592,7 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
@Override
|
|
|
public MusicSheetDetailVo detail(String id, SysUser sysUser, ClientEnum userType,String tenantAlbumId) {
|
|
|
MusicSheetDetailVo detailVo = baseMapper.detail(Long.parseLong(id));
|
|
|
- if (detailVo == null) {
|
|
|
+ if (detailVo == null || detailVo.getDelFlag()) {
|
|
|
//获取待审核曲目信息
|
|
|
MusicSheetAuthRecord record = musicSheetAuthRecordService.lambdaQuery().eq(MusicSheetAuthRecord::getId, id).last("LIMIT 1").one();
|
|
|
if(Objects.nonNull(record)){
|
|
@@ -604,7 +604,9 @@ public class MusicSheetServiceImpl extends ServiceImpl<MusicSheetDao, MusicSheet
|
|
|
return JSON.parseObject(JSON.toJSONString(musicSheetDetailVo),MusicSheetDetailVo.class);
|
|
|
}
|
|
|
}
|
|
|
- throw new BizException("未找到曲目信息");
|
|
|
+ if(detailVo == null){
|
|
|
+ throw new BizException("未找到曲目信息");
|
|
|
+ }
|
|
|
}
|
|
|
if(detailVo.getDelFlag()){
|
|
|
//获取乐器名称
|