mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
add 更新站点互联互通配置V2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user