mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-01 12:38:04 +08:00
update更新站点互联互通配置V2
This commit is contained in:
@@ -265,6 +265,24 @@ public class PileStationInfoController extends BaseController {
|
|||||||
return toAjax(thirdPartyStationRelationService.updateThirdPartyStationRelation(dto));
|
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;
|
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
|
// public AjaxResult checkStationAmap
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user