BUGFIX:异常级别设置

This commit is contained in:
shahaibo
2024-01-28 10:40:29 +08:00
parent 18d0d55d4f
commit 4380f0bc5b

View File

@@ -57,7 +57,7 @@ public class PanToneServiceImpl extends ServiceImpl<PanToneMapper, PanTone> impl
queryWrapper.eq("tcx", txc); queryWrapper.eq("tcx", txc);
List<PanTone> panTones = panToneMapper.selectList(queryWrapper); List<PanTone> panTones = panToneMapper.selectList(queryWrapper);
if (CollectionUtil.isEmpty(panTones)) { if (CollectionUtil.isEmpty(panTones)) {
throw new BusinessException("panTones.not.found"); throw new BusinessException("panTones.not.found", ResultEnum.PROMPT.getCode());
} }
return coverPanToneToVo(panTones.get(0)); return coverPanToneToVo(panTones.get(0));
} }
@@ -184,7 +184,7 @@ public class PanToneServiceImpl extends ServiceImpl<PanToneMapper, PanTone> impl
, Map<Integer, Integer> indexToValue, Map<Integer, GetRgbByHsvBatchDTO> valueToHsv, , Map<Integer, Integer> indexToValue, Map<Integer, GetRgbByHsvBatchDTO> valueToHsv,
List<GetRgbByHsvBatchDTO> hsvBatch) { List<GetRgbByHsvBatchDTO> hsvBatch) {
if (CollectionUtil.isEmpty(panTones)) { if (CollectionUtil.isEmpty(panTones)) {
throw new BusinessException("panTones.not.found"); throw new BusinessException("panTones.not.found", ResultEnum.PROMPT.getCode());
} }
List<PantoneVO> templateResposne = CopyUtil.copyList(panTones, PantoneVO.class, (o, d) -> { List<PantoneVO> templateResposne = CopyUtil.copyList(panTones, PantoneVO.class, (o, d) -> {
d.setId(o.getPantoneIndex()); d.setId(o.getPantoneIndex());