This commit is contained in:
admin
2024-06-09 15:37:25 +08:00
parent 8608663861
commit 19c0efb16d
4 changed files with 18 additions and 1 deletions

View File

@@ -103,7 +103,11 @@ public class PlayCommodityInfoServiceImpl extends ServiceImpl<PlayCommodityInfoM
@Override
public PlayCommodityInfoVo queryCommodityInfo(String id) {
return this.baseMapper.queryCommodityInfo(id);
PlayCommodityInfoVo vo = this.baseMapper.queryCommodityInfo(id);
if (vo == null) {
throw new CustomException("服务项目不存在");
}
return vo;
}
/**