update 查询新增站点互联互通配置

This commit is contained in:
Guoqs
2025-12-04 15:59:46 +08:00
parent 3fc5a3273f
commit c88f9a2ea2
8 changed files with 72 additions and 10 deletions

View File

@@ -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) {