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

This commit is contained in:
Guoqs
2025-12-05 10:07:50 +08:00
parent a90f0e0a6d
commit d1c3bb562b
4 changed files with 39 additions and 1 deletions

View File

@@ -255,6 +255,16 @@ public class PileStationInfoController extends BaseController {
return toAjax(thirdPartyStationRelationService.deleteThirdPartyStationRelation(dto.getId()));
}
/**
* 更新站点互联互通配置
*/
@PreAuthorize("@ss.hasPermi('pile:station:edit')")
@Log(title = "更新站点互联互通配置", businessType = BusinessType.UPDATE)
@PostMapping("/updateThirdPartyStationRelation")
public AjaxResult updateRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
return toAjax(thirdPartyStationRelationService.updateThirdPartyStationRelation(dto));
}
/**
* 查询站点互联互通配置
*
@@ -400,7 +410,7 @@ public class PileStationInfoController extends BaseController {
public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
AjaxResult result;
try {
thirdPartyStationRelationService.updateThirdPartyStationRelation(dto);
thirdPartyStationRelationService.updateThirdPartyStationRelationV2(dto);
result = AjaxResult.success();
} catch (Exception e) {
logger.error("更新站点与第三方平台关系error,", e);