fix(record): 优化数据记录异常处理

- 修改了 RecordIotenvInstantServiceImpl 类中的异常处理逻辑
- 当分表不存在时,不再抛出异常,而是返回空列表
- 这种处理方式避免了不必要的异常中断,提高了系统的健壮性
boardTest
zch 4 weeks ago
parent 376eefdb0f
commit 79b4d4f6ad

@ -160,7 +160,7 @@ public class RecordIotenvInstantServiceImpl implements IRecordIotenvInstantServi
} }
for (String tableName : tableNames){ for (String tableName : tableNames){
if (!isTableExists(tableName)){ if (!isTableExists(tableName)){
throw new ServiceException(tableName + "分表不存在,未记录数据"); return new ArrayList<>();
} }
} }

Loading…
Cancel
Save