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 }