mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 查询新增站点互联互通配置
This commit is contained in:
@@ -234,6 +234,25 @@ public class PileStationInfoController extends BaseController {
|
||||
return AjaxResult.success(pileService.updateStationQRCodePrefix(dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增站点互联互通配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:station:add')")
|
||||
@Log(title = "新增站点互联互通配置", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/insertThirdPartyStationRelation")
|
||||
public AjaxResult insertRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
|
||||
return toAjax(thirdPartyStationRelationService.insertThirdPartyStationRelation(dto.getStationId(), dto.getThirdPartyType()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除站点互联互通配置
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:station:remove')")
|
||||
@Log(title = "删除站点互联互通配置", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/deleteThirdPartyStationRelation")
|
||||
public AjaxResult deleteRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
|
||||
return toAjax(thirdPartyStationRelationService.deleteThirdPartyStationRelation(dto.getId()));
|
||||
}
|
||||
/**
|
||||
* 查询站点互联互通配置
|
||||
*
|
||||
@@ -379,7 +398,6 @@ public class PileStationInfoController extends BaseController {
|
||||
public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
|
||||
AjaxResult result;
|
||||
try {
|
||||
// startPage();
|
||||
thirdPartyStationRelationService.updateThirdPartyStationRelation(dto);
|
||||
result = AjaxResult.success();
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user