update更新站点互联互通配置V2

This commit is contained in:
Guoqs
2025-12-05 10:29:24 +08:00
parent d1c3bb562b
commit da812562aa

View File

@@ -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
}