From da812562aabba8229378fdda7b1f97f707878f32 Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Fri, 5 Dec 2025 10:29:24 +0800 Subject: [PATCH] =?UTF-8?q?update=E6=9B=B4=E6=96=B0=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E4=BA=92=E8=81=94=E4=BA=92=E9=80=9A=E9=85=8D=E7=BD=AEV2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pile/PileStationInfoController.java | 34 +++++++++++-------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java index 97d3d6c52..7cbf3458a 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileStationInfoController.java @@ -265,6 +265,24 @@ public class PileStationInfoController extends BaseController { return toAjax(thirdPartyStationRelationService.updateThirdPartyStationRelation(dto)); } + /** + * 更新站点与第三方平台关系 + */ + @PreAuthorize("@ss.hasPermi('pile:station:edit')") + @Log(title = "更新站点互联互通配置V2", businessType = BusinessType.UPDATE) + @PostMapping("/updateThirdPartyStationRelationV2") + public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) { + AjaxResult result; + try { + thirdPartyStationRelationService.updateThirdPartyStationRelationV2(dto); + result = AjaxResult.success(); + } catch (Exception e) { + logger.error("更新站点与第三方平台关系error,", e); + result = AjaxResult.error(e.getMessage()); + } + return result; + } + /** * 查询站点互联互通配置 * @@ -403,21 +421,7 @@ public class PileStationInfoController extends BaseController { return response; } - /** - * 更新站点与第三方平台关系 - */ - @PostMapping("/updateThirdPartyStationRelation") - public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) { - AjaxResult result; - try { - thirdPartyStationRelationService.updateThirdPartyStationRelationV2(dto); - result = AjaxResult.success(); - } catch (Exception e) { - logger.error("更新站点与第三方平台关系error,", e); - result = AjaxResult.error(e.getMessage()); - } - return result; - } + // public AjaxResult checkStationAmap }