|
@@ -230,7 +230,7 @@ public class MusicSheetAuthRecordServiceImpl extends ServiceImpl<MusicSheetAuthR
|
|
|
if(musicSheetAuthRecord.getId() == null){
|
|
|
throw new BizException("先选择要修改的曲目");
|
|
|
}
|
|
|
- MusicSheetAuthRecord record = baseMapper.selectById(musicSheetAuthRecord.getId());
|
|
|
+ MusicSheetAuthRecord record = this.lambdaQuery().eq(MusicSheetAuthRecord::getMusicSheetId, musicSheetAuthRecord.getId()).last("LIMIT 1").one();
|
|
|
if (record == null){
|
|
|
throw new BizException("审核记录不存在");
|
|
|
}
|