From f37c91a84345f925e41cd26bf5d22ed1a2594bdf Mon Sep 17 00:00:00 2001 From: liusuyi <1951119284@qq.com> Date: 星期四, 06 六月 2024 14:37:16 +0800 Subject: [PATCH] 防止录像文件持续生成,增加启动项目清空本地录像临时文件 --- ard-work/src/main/java/com/ruoyi/utils/data/Query.java | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/ard-work/src/main/java/com/ruoyi/utils/data/Query.java b/ard-work/src/main/java/com/ruoyi/utils/data/Query.java index eb69b6d..ea4d318 100644 --- a/ard-work/src/main/java/com/ruoyi/utils/data/Query.java +++ b/ard-work/src/main/java/com/ruoyi/utils/data/Query.java @@ -70,16 +70,11 @@ rtu_data_yj_8.setZHS(rs.getInt("ZHS")); dataBridgeList.add(rtu_data_yj_8); } + conn.close(); return dataBridgeList; } catch (Exception e) { log.error("璁惧杩愯鐘舵�佹煡璇㈠紓甯�:" + e.getMessage()); return dataBridgeList; - } finally { - try { - conn.close(); - } catch (SQLException e) { - e.printStackTrace(); - } } } } -- Gitblit v1.9.3