fix: 优化错误提示

dev
huangfeng 1 year ago
parent d91b8db8c9
commit 168f3726be

@ -168,11 +168,11 @@ public class NSensorServiceImpl implements NSensorService {
} }
this.fillOtherName(sensor); this.fillOtherName(sensor);
if (StringUtils.isBlank(sensor.getTableName())) { if (StringUtils.isBlank(sensor.getTableName())) {
throw new BusinessException("该装置类型" + sensor.getTypeName() + "缺少table_name信息"); throw new BusinessException("该装置类型(" + sensor.getTypeName() + ")缺少table_name信息");
} }
List<ModevTypePoint> points = modevTypePointService.listAll(sensor.getTypeId()); List<ModevTypePoint> points = modevTypePointService.listAll(sensor.getTypeId());
if (CollectionUtils.isEmpty(points)) { if (CollectionUtils.isEmpty(points)) {
throw new BusinessException("该装置类型" + sensor.getTypeName() + "未配置属性点信息"); throw new BusinessException("该装置类型(" + sensor.getTypeName() + ")未配置属性点信息");
} }
// 获取数据 // 获取数据

Loading…
Cancel
Save