From 76939be1afe38ea23db3897d2c5b2120a3aa7400 Mon Sep 17 00:00:00 2001 From: tangwei Date: Fri, 26 Jun 2026 08:51:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yfd/platform/config/SecurityConfig.java | 28 ++++++++++--------- .../controller/SdEngInfoBHController.java | 4 +-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/backend/src/main/java/com/yfd/platform/config/SecurityConfig.java b/backend/src/main/java/com/yfd/platform/config/SecurityConfig.java index a43e3361..58ec8889 100644 --- a/backend/src/main/java/com/yfd/platform/config/SecurityConfig.java +++ b/backend/src/main/java/com/yfd/platform/config/SecurityConfig.java @@ -61,19 +61,21 @@ public class SecurityConfig { .requestMatchers("/tempFile/**").permitAll() .requestMatchers("/system/user/auditUser").permitAll() .requestMatchers("/register/accessToken").permitAll() -// .requestMatchers("/eng/**").permitAll() -// .requestMatchers("/eq/**").permitAll() -// .requestMatchers("/env/**").permitAll() -// .requestMatchers("/warn/**").permitAll() -// .requestMatchers("/wt/**").permitAll() -// .requestMatchers("/fb/**").permitAll() -// .requestMatchers("/zq/**").permitAll() -// .requestMatchers("/wq/**").permitAll() -// .requestMatchers("/vd/**").permitAll() -// .requestMatchers("/fp/**").permitAll() -// .requestMatchers("/fpr/**").permitAll() -// .requestMatchers("/fh/**").permitAll() -// .requestMatchers("/data/**").permitAll() + .requestMatchers("/eng/**").permitAll() + .requestMatchers("/eq/**").permitAll() + .requestMatchers("/env/**").permitAll() + .requestMatchers("/warn/**").permitAll() + .requestMatchers("/wt/**").permitAll() + .requestMatchers("/fb/**").permitAll() + .requestMatchers("/zq/**").permitAll() + .requestMatchers("/wq/**").permitAll() + .requestMatchers("/wte/**").permitAll() + .requestMatchers("/vd/**").permitAll() + .requestMatchers("/vap/**").permitAll() + .requestMatchers("/fp/**").permitAll() + .requestMatchers("/fpr/**").permitAll() + .requestMatchers("/fh/**").permitAll() + .requestMatchers("/data/**").permitAll() .requestMatchers("/sms/**").permitAll() .requestMatchers(HttpMethod.GET, "/").permitAll() .requestMatchers(HttpMethod.GET, diff --git a/backend/src/main/java/com/yfd/platform/qgc_base/controller/SdEngInfoBHController.java b/backend/src/main/java/com/yfd/platform/qgc_base/controller/SdEngInfoBHController.java index ac83a965..8e989690 100644 --- a/backend/src/main/java/com/yfd/platform/qgc_base/controller/SdEngInfoBHController.java +++ b/backend/src/main/java/com/yfd/platform/qgc_base/controller/SdEngInfoBHController.java @@ -97,9 +97,7 @@ public class SdEngInfoBHController { @PostMapping("/add") @Operation(summary = "新增电站") public ResponseResult add(@RequestBody SdEngInfoBHOperateRequest request) { - SdEngInfoBH engInfo = request == null || request.getEngInfo() == null - ? null - : objectMapper.convertValue(request.getEngInfo(), SdEngInfoBH.class); + SdEngInfoBH engInfo = request == null || request.getEngInfo() == null ? null : objectMapper.convertValue(request.getEngInfo(), SdEngInfoBH.class); boolean result = engInfoBHService.addEngInfo(engInfo, request.getSource()); return result ? ResponseResult.success("新增成功") : ResponseResult.error("新增失败"); }