停车平台, 停车优惠

This commit is contained in:
Guoqs
2025-01-07 16:59:49 +08:00
parent 2234880632
commit fd3ceab0f6
3 changed files with 304 additions and 309 deletions

View File

@@ -14,7 +14,6 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.StringUtils; import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.poi.ExcelUtil; import com.jsowell.common.util.poi.ExcelUtil;
import com.jsowell.pile.domain.PileStationInfo; import com.jsowell.pile.domain.PileStationInfo;
import com.jsowell.pile.domain.ThirdPartySettingInfo;
import com.jsowell.pile.domain.ThirdpartyParkingConfig; import com.jsowell.pile.domain.ThirdpartyParkingConfig;
import com.jsowell.pile.dto.FastCreateStationDTO; import com.jsowell.pile.dto.FastCreateStationDTO;
import com.jsowell.pile.dto.PushStationInfoDTO; import com.jsowell.pile.dto.PushStationInfoDTO;
@@ -48,74 +47,74 @@ import java.util.stream.Collectors;
@RestController @RestController
@RequestMapping("/pile/station") @RequestMapping("/pile/station")
public class PileStationInfoController extends BaseController { public class PileStationInfoController extends BaseController {
@Autowired @Autowired
private PileStationInfoService pileStationInfoService; private PileStationInfoService pileStationInfoService;
@Autowired @Autowired
private PileService pileService; private PileService pileService;
@Autowired @Autowired
private ThirdPartySettingInfoService thirdPartySettingInfoService; private ThirdPartySettingInfoService thirdPartySettingInfoService;
@Autowired @Autowired
private CommonService commonService; private CommonService commonService;
@Autowired @Autowired
private AMapService aMapService; private AMapService aMapService;
@Autowired @Autowired
private ThirdPartyStationRelationService thirdPartyStationRelationService; private ThirdPartyStationRelationService thirdPartyStationRelationService;
@Autowired @Autowired
private ThirdPartyParkingConfigService parkingConfigService; private ThirdPartyParkingConfigService parkingConfigService;
/** /**
* 查询充电站信息列表NEW * 查询充电站信息列表NEW
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:list')") @PreAuthorize("@ss.hasPermi('pile:station:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(QueryStationDTO queryStationDTO) { public TableDataInfo list(QueryStationDTO queryStationDTO) {
startPage(); startPage();
// List<PileStationInfo> list = pileStationInfoService.selectPileStationInfoList(pileStationInfo); // List<PileStationInfo> list = pileStationInfoService.selectPileStationInfoList(pileStationInfo);
List<PileStationVO> list = pileStationInfoService.queryStationInfos(queryStationDTO); List<PileStationVO> list = pileStationInfoService.queryStationInfos(queryStationDTO);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 查询充电站下拉列表 * 查询充电站下拉列表
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:list')") @PreAuthorize("@ss.hasPermi('pile:station:list')")
@GetMapping("/StationSelectList") @GetMapping("/StationSelectList")
public TableDataInfo getStationSelectList(QueryStationDTO dto) { public TableDataInfo getStationSelectList(QueryStationDTO dto) {
logger.info("dto:{}", JSON.toJSONString(dto)); logger.info("dto:{}", JSON.toJSONString(dto));
startPage(); startPage();
List<PileStationVO> list = pileStationInfoService.getStationSelectList(dto); List<PileStationVO> list = pileStationInfoService.getStationSelectList(dto);
return getDataTable(list); return getDataTable(list);
} }
/** /**
* 快速建站接口 * 快速建站接口
*/ */
// @PreAuthorize("@ss.hasPermi('pile:station:add')") // @PreAuthorize("@ss.hasPermi('pile:station:add')")
@PostMapping("/fastCreateStation") @PostMapping("/fastCreateStation")
public AjaxResult fastCreateStation(@RequestBody FastCreateStationDTO dto) { public AjaxResult fastCreateStation(@RequestBody FastCreateStationDTO dto) {
logger.info("快速建站接口 param:{}", JSON.toJSONString(dto)); logger.info("快速建站接口 param:{}", JSON.toJSONString(dto));
int i = 0; int i = 0;
try { try {
i = pileStationInfoService.fastCreateStation(dto); i = pileStationInfoService.fastCreateStation(dto);
} catch (BusinessException e) { } catch (BusinessException e) {
logger.warn("快速建站接口 warn", e); logger.warn("快速建站接口 warn", e);
} catch (Exception e) { } catch (Exception e) {
logger.error("快速建站接口 error", e); logger.error("快速建站接口 error", e);
} }
return toAjax(i); return toAjax(i);
} }
/** /**
* 查询充电站信息列表 * 查询充电站信息列表
*/ */
/*@PreAuthorize("@ss.hasPermi('pile:station:list')") /*@PreAuthorize("@ss.hasPermi('pile:station:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(PileStationInfo pileStationInfo) { public TableDataInfo list(PileStationInfo pileStationInfo) {
@@ -124,272 +123,278 @@ public class PileStationInfoController extends BaseController {
return getDataTable(list); return getDataTable(list);
}*/ }*/
/** /**
* 导出充电站信息列表 * 导出充电站信息列表
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:export')") @PreAuthorize("@ss.hasPermi('pile:station:export')")
@Log(title = "充电站信息", businessType = BusinessType.EXPORT) @Log(title = "充电站信息", businessType = BusinessType.EXPORT)
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, PileStationInfo pileStationInfo) { public void export(HttpServletResponse response, PileStationInfo pileStationInfo) {
List<PileStationInfo> list = pileStationInfoService.selectPileStationInfoList(pileStationInfo); List<PileStationInfo> list = pileStationInfoService.selectPileStationInfoList(pileStationInfo);
ExcelUtil<PileStationInfo> util = new ExcelUtil<PileStationInfo>(PileStationInfo.class); ExcelUtil<PileStationInfo> util = new ExcelUtil<PileStationInfo>(PileStationInfo.class);
util.exportExcel(response, list, "充电站信息数据"); util.exportExcel(response, list, "充电站信息数据");
} }
/** /**
* 获取充电站信息详细信息 * 获取充电站信息详细信息
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:query')") @PreAuthorize("@ss.hasPermi('pile:station:query')")
@GetMapping(value = "/{id}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) { public AjaxResult getInfo(@PathVariable("id") Long id) {
return AjaxResult.success(pileStationInfoService.selectPileStationInfoById(id)); return AjaxResult.success(pileStationInfoService.selectPileStationInfoById(id));
} }
/** /**
* 后管站点基本资料页面 * 后管站点基本资料页面
* @return *
*/ * @return
@PreAuthorize("@ss.hasPermi('pile:station:query')") */
@GetMapping(value = "/getStationInfo/{stationId}") @PreAuthorize("@ss.hasPermi('pile:station:query')")
public AjaxResult getStationInfo(@PathVariable("stationId") String stationId) { @GetMapping(value = "/getStationInfo/{stationId}")
return AjaxResult.success(pileStationInfoService.getStationInfo(stationId)); public AjaxResult getStationInfo(@PathVariable("stationId") String stationId) {
} return AjaxResult.success(pileStationInfoService.getStationInfo(stationId));
}
/** /**
* 新增充电站信息 * 新增充电站信息
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:add')") @PreAuthorize("@ss.hasPermi('pile:station:add')")
@Log(title = "充电站信息", businessType = BusinessType.INSERT) @Log(title = "充电站信息", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody PileStationInfo pileStationInfo) { public AjaxResult add(@RequestBody PileStationInfo pileStationInfo) {
return toAjax(pileStationInfoService.insertPileStationInfo(pileStationInfo)); return toAjax(pileStationInfoService.insertPileStationInfo(pileStationInfo));
} }
/** /**
* 修改充电站信息 * 修改充电站信息
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:edit')") @PreAuthorize("@ss.hasPermi('pile:station:edit')")
@Log(title = "充电站信息", businessType = BusinessType.UPDATE) @Log(title = "充电站信息", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody PileStationInfo pileStationInfo) { public AjaxResult edit(@RequestBody PileStationInfo pileStationInfo) {
logger.info("修改充电站信息 param:{}", pileStationInfo.toString()); logger.info("修改充电站信息 param:{}", pileStationInfo.toString());
return toAjax(pileStationInfoService.updatePileStationInfo(pileStationInfo)); return toAjax(pileStationInfoService.updatePileStationInfo(pileStationInfo));
} }
/** /**
* 修改对接高德标识 * 修改对接高德标识
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:edit')") @PreAuthorize("@ss.hasPermi('pile:station:edit')")
@Log(title = "修改对接高德标识", businessType = BusinessType.UPDATE) @Log(title = "修改对接高德标识", businessType = BusinessType.UPDATE)
@PostMapping("/editAmapFlag") @PostMapping("/editAmapFlag")
public AjaxResult editAmapFlag(@RequestBody EditAmapFlagDTO dto) { public AjaxResult editAmapFlag(@RequestBody EditAmapFlagDTO dto) {
logger.info("修改对接高德标识 param:{}", JSON.toJSONString(dto)); logger.info("修改对接高德标识 param:{}", JSON.toJSONString(dto));
return toAjax(pileStationInfoService.updateAmapFlag(dto.getStationId(), dto.getAmapFlag())); return toAjax(pileStationInfoService.updateAmapFlag(dto.getStationId(), dto.getAmapFlag()));
} }
/** /**
* 高德地图商家推送静态信息状态 * 高德地图商家推送静态信息状态
* @param dto *
* @return * @param dto
*/ * @return
@PreAuthorize("@ss.hasPermi('pile:station:edit')") */
@PostMapping("/pushAMapStationStatus") @PreAuthorize("@ss.hasPermi('pile:station:edit')")
public RestApiResponse<?> pushAMapStationStatus(EditAmapFlagDTO dto) { @PostMapping("/pushAMapStationStatus")
RestApiResponse<?> response = null; public RestApiResponse<?> pushAMapStationStatus(EditAmapFlagDTO dto) {
try { RestApiResponse<?> response = null;
String result = aMapService.pushStationInfo(Lists.newArrayList(dto.getStationId()), dto.getAmapFlag()); try {
response = new RestApiResponse<>(result); String result = aMapService.pushStationInfo(Lists.newArrayList(dto.getStationId()), dto.getAmapFlag());
} catch (Exception e) { response = new RestApiResponse<>(result);
logger.error("高德地图商家推送静态信息状态 error", e); } catch (Exception e) {
response = new RestApiResponse<>(e); logger.error("高德地图商家推送静态信息状态 error", e);
} response = new RestApiResponse<>(e);
logger.info("高德地图商家推送静态信息状态 result:{}", response); }
return response; logger.info("高德地图商家推送静态信息状态 result:{}", response);
} return response;
}
/** /**
* 删除充电站信息 * 删除充电站信息
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:remove')") @PreAuthorize("@ss.hasPermi('pile:station:remove')")
@Log(title = "充电站信息", businessType = BusinessType.DELETE) @Log(title = "充电站信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) { public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(pileStationInfoService.deletePileStationInfoByIds(ids)); return toAjax(pileStationInfoService.deletePileStationInfoByIds(ids));
} }
/** /**
* 根据运营商id获取充电站列表 * 根据运营商id获取充电站列表
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:query')") @PreAuthorize("@ss.hasPermi('pile:station:query')")
@PostMapping(value = "/selectStationListByMerchantId") @PostMapping(value = "/selectStationListByMerchantId")
public AjaxResult selectStationListByMerchantId(@RequestBody QueryStationDTO dto) { public AjaxResult selectStationListByMerchantId(@RequestBody QueryStationDTO dto) {
return AjaxResult.success(pileStationInfoService.selectStationListByMerchantIdWithAuth(Long.valueOf(dto.getMerchantId()))); return AjaxResult.success(pileStationInfoService.selectStationListByMerchantIdWithAuth(Long.valueOf(dto.getMerchantId())));
} }
/** /**
* 修改站点二维码前缀 * 修改站点二维码前缀
* @param dto *
* @return * @param dto
*/ * @return
@PreAuthorize("@ss.hasPermi('pile:station:edit')") */
@PostMapping("/updateStationQRCodePrefix") @PreAuthorize("@ss.hasPermi('pile:station:edit')")
public AjaxResult updateStationQRCodePrefix(@RequestBody QueryStationDTO dto) { @PostMapping("/updateStationQRCodePrefix")
// 校验入参 public AjaxResult updateStationQRCodePrefix(@RequestBody QueryStationDTO dto) {
if (StringUtils.isBlank(dto.getStationId()) || StringUtils.isBlank(dto.getQrcodePrefix())) { // 校验入参
return AjaxResult.error(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR.getValue()); if (StringUtils.isBlank(dto.getStationId()) || StringUtils.isBlank(dto.getQrcodePrefix())) {
} return AjaxResult.error(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR.getValue());
return AjaxResult.success(pileService.updateStationQRCodePrefix(dto)); }
} return AjaxResult.success(pileService.updateStationQRCodePrefix(dto));
}
/** /**
* 查询站点互联互通配置 * 查询站点互联互通配置
* @param id *
* @return * @param id
*/ * @return
@PreAuthorize("@ss.hasPermi('pile:station:query')") */
@GetMapping("/getRelationByStationId/{stationId}") @PreAuthorize("@ss.hasPermi('pile:station:query')")
public TableDataInfo getSettingByStationId(@PathVariable("stationId") Long id) { @GetMapping("/getRelationByStationId/{stationId}")
List<ThirdPartyStationRelationVO> list = thirdPartyStationRelationService.getRelationInfoList(String.valueOf(id)); public TableDataInfo getSettingByStationId(@PathVariable("stationId") Long id) {
for (ThirdPartyStationRelationVO vo : list) { List<ThirdPartyStationRelationVO> list = thirdPartyStationRelationService.getRelationInfoList(String.valueOf(id));
vo.setThirdPartyType(ThirdPlatformTypeEnum.getTypeLabelByTypeCode(vo.getThirdPartyType())); for (ThirdPartyStationRelationVO vo : list) {
} vo.setThirdPartyType(ThirdPlatformTypeEnum.getTypeLabelByTypeCode(vo.getThirdPartyType()));
return getDataTable(list); }
} return getDataTable(list);
}
/** /**
* 查询第三方平台配置信息 * 查询第三方平台配置信息
* @param info * @param info
* @return * @return
*/ */
@PreAuthorize("@ss.hasPermi('pile:station:query')") // @PreAuthorize("@ss.hasPermi('pile:station:query')")
@PostMapping("/getSettingInfo") // @PostMapping("/getSettingInfo")
public TableDataInfo getSettingInfo(@RequestBody ThirdPartySettingInfo info) { // public TableDataInfo getSettingInfo(@RequestBody ThirdPartySettingInfo info) {
List<ThirdPartySettingInfo> infos = thirdPartySettingInfoService.selectThirdPartySettingInfoList(info); // List<ThirdPartySettingInfo> infos = thirdPartySettingInfoService.selectThirdPartySettingInfoList(info);
return getDataTable(infos); // return getDataTable(infos);
// return AjaxResult.success(thirdPartySettingInfoService.selectSettingInfo(info)); // // return AjaxResult.success(thirdPartySettingInfoService.selectSettingInfo(info));
} // }
/** /**
* 修改站点互联互通配置信息 * 修改站点互联互通配置信息
* @param info * @param info
* @return * @return
*/ */
// @PreAuthorize("@ss.hasPermi('pile:station:edit')") // @PreAuthorize("@ss.hasPermi('pile:station:edit')")
// @PostMapping("/updateSettingByStationId") // @PostMapping("/updateSettingByStationId")
// public AjaxResult updateSettingByStationId(@RequestBody ThirdPartySettingInfo info) { // public AjaxResult updateSettingByStationId(@RequestBody ThirdPartySettingInfo info) {
// return AjaxResult.success(thirdPartySettingInfoService.updateStationSettingInfo(info)); // return AjaxResult.success(thirdPartySettingInfoService.updateStationSettingInfo(info));
// } // }
/** /**
* 新增站点互联互通配置信息 * 新增站点互联互通配置信息
* @param info * @param info
* @return * @return
*/ */
// @PreAuthorize("@ss.hasPermi('pile:station:add')") // @PreAuthorize("@ss.hasPermi('pile:station:add')")
// @PostMapping("/insertSettingInfo") // @PostMapping("/insertSettingInfo")
// public AjaxResult insertSettingInfo(ThirdPartySettingInfo info) { // public AjaxResult insertSettingInfo(ThirdPartySettingInfo info) {
// return AjaxResult.success(thirdPartySettingInfoService.insertThirdPartySettingInfo(info)); // return AjaxResult.success(thirdPartySettingInfoService.insertThirdPartySettingInfo(info));
// } // }
/**
* 推送充电站信息 notification_stationInfo
* http://localhost:8080/LianLian/pushStationInfo
*
* @param dto
* @return
*/
@PostMapping("/pushStationInfo")
public RestApiResponse<?> pushStationInfo(@RequestBody PushStationInfoDTO dto) {
logger.info("推送第三方平台充电站信息 params:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null;
Long stationId = dto.getStationId();
List<String> types = dto.getThirdPartyTypes();
// 先查到该站点推送过的类型
List<ThirdPartyStationRelationVO> infoList = thirdPartyStationRelationService.getRelationInfoList(String.valueOf(stationId));
List<String> typeList = infoList.stream()
.map(ThirdPartyStationRelationVO::getThirdPartyType)
.collect(Collectors.toList());
// 对types去重可获取到需要新推送的第三方平台类型
types.removeAll(typeList);
dto.setThirdPartyTypes(types);
try {
if (StringUtils.isBlank(String.valueOf(stationId))) {
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR);
}
String result = commonService.commonPushStation(dto);
response = new RestApiResponse<>(result);
} catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
logger.error("推送第三方平台充电站信息 error", e);
response = new RestApiResponse<>("推送失败,请联系管理员");
// 有报错,所有的都必须删除
thirdPartyStationRelationService.updateRelationDelFlag(String.valueOf(stationId), types);
}
logger.info("推送第三方平台充电站信息 result:{}", response);
return response;
}
/** /**
* 推送充电站信息 notification_stationInfo * 绑定停车平台(停车充电下发优惠券)
* http://localhost:8080/LianLian/pushStationInfo *
* @param dto * @param dto
* @return * @return
*/ */
@PostMapping("/pushStationInfo") @PostMapping("/bindParkingPlatform")
public RestApiResponse<?> pushStationInfo(@RequestBody PushStationInfoDTO dto) { public RestApiResponse<?> bindParkingPlatform(@RequestBody BindParkingPlatformDTO dto) {
logger.info("推送第三方平台充电站信息 params:{}", JSON.toJSONString(dto)); logger.info("绑定停车平台 params:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
Long stationId = dto.getStationId(); try {
List<String> types = dto.getThirdPartyTypes(); int i = pileStationInfoService.bindParkingPlatform(dto);
// 先查到该站点推送过的类型 response = new RestApiResponse<>(i);
List<ThirdPartyStationRelationVO> infoList = thirdPartyStationRelationService.getRelationInfoList(String.valueOf(stationId)); } catch (BusinessException e) {
List<String> typeList = infoList.stream() logger.error("绑定停车平台 error,", e);
.map(ThirdPartyStationRelationVO::getThirdPartyType) response = new RestApiResponse<>(e.getCode(), e.getMessage());
.collect(Collectors.toList()); } catch (Exception e) {
// 对types去重可获取到需要新推送的第三方平台类型 logger.error("绑定停车平台 error", e);
types.removeAll(typeList); response = new RestApiResponse<>(e);
dto.setThirdPartyTypes(types); }
try { logger.info("绑定停车平台 result:{}", response);
if (StringUtils.isBlank(String.valueOf(stationId))) { return response;
throw new BusinessException(ReturnCodeEnum.CODE_PARAM_NOT_NULL_ERROR); }
}
String result = commonService.commonPushStation(dto);
response = new RestApiResponse<>(result);
}catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error",e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
}catch (Exception e) {
logger.error("推送第三方平台充电站信息 error", e);
response = new RestApiResponse<>("推送失败,请联系管理员");
// 有报错,所有的都必须删除
thirdPartyStationRelationService.updateRelationDelFlag(String.valueOf(stationId), types);
}
logger.info("推送第三方平台充电站信息 result:{}", response);
return response;
}
/** /**
* 绑定停车平台(停车充电下发优惠券) * 获取停车平台列表
* @param dto *
* @return * @return
*/ */
@PostMapping("/bindParkingPlatform") @GetMapping("/getParkingInfoList")
public RestApiResponse<?> bindParkingPlatform(@RequestBody BindParkingPlatformDTO dto) { public RestApiResponse<?> getParkingInfoList() {
logger.info("绑定停车平台 params:{}", JSON.toJSONString(dto)); // logger.info("获取停车平台列表");
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
try { try {
int i = pileStationInfoService.bindParkingPlatform(dto); startPage();
response = new RestApiResponse<>(i); List<ThirdpartyParkingConfig> list = parkingConfigService.selectInfoList();
}catch (BusinessException e) { response = new RestApiResponse<>(list);
logger.error("绑定停车平台 error,", e); } catch (Exception e) {
response = new RestApiResponse<>(e.getCode(), e.getMessage()); logger.error("获取停车平台列表 error,", e);
} catch (Exception e) { response = new RestApiResponse<>(e);
logger.error("绑定停车平台 error", e); }
response = new RestApiResponse<>(e); logger.info("获取停车平台列表 result:{}", response);
} return response;
logger.info("绑定停车平台 result:{}", response); }
return response;
}
/** /**
* 获取停车平台列表 * 更新站点与第三方平台关系
* @return */
*/ @PostMapping("/updateThirdPartyStationRelation")
@GetMapping("/getParkingInfoList") public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
public RestApiResponse<?> getParkingInfoList() { AjaxResult result;
// logger.info("获取停车平台列表"); try {
RestApiResponse<?> response = null; // startPage();
try { thirdPartyStationRelationService.updateThirdPartyStationRelation(dto);
startPage(); result = AjaxResult.success();
List<ThirdpartyParkingConfig> list = parkingConfigService.selectInfoList(); } catch (Exception e) {
response = new RestApiResponse<>(list); logger.error("更新站点与第三方平台关系error,", e);
} catch (Exception e) { result = AjaxResult.error(e.getMessage());
logger.error("获取停车平台列表 error,", e); }
response = new RestApiResponse<>(e); return result;
} }
logger.info("获取停车平台列表 result:{}", response);
return response;
}
/**
* 更新站点与第三方平台关系
*/
@PostMapping("/updateThirdPartyStationRelation")
public AjaxResult updateThirdPartyStationRelation(@RequestBody ThirdPartyStationRelationDTO dto) {
AjaxResult result;
try {
// startPage();
thirdPartyStationRelationService.updateThirdPartyStationRelation(dto);
result = AjaxResult.success();
} catch (Exception e) {
logger.error("更新站点与第三方平台关系error,", e);
result = AjaxResult.error(e.getMessage());
}
return result;
}
} }

View File

@@ -121,14 +121,6 @@ export function getRelationByStationId(id) {
}); });
} }
// 查询站点互联互通配置
export function getSettingInfo(data) {
return request({
url: "/pile/station/getSettingInfo",
method: "post",
data: data,
});
}
// 修改站点互联互通配置 // 修改站点互联互通配置
export function updateSettingByStationId(data) { export function updateSettingByStationId(data) {

View File

@@ -255,10 +255,8 @@ import stationWhiteList from "@/views/pile/station/stationWhiteList";
import { import {
getStationInfo, getStationInfo,
updateStationQRCodePrefix, updateStationQRCodePrefix,
getSettingByStationId,
updateSettingByStationId, updateSettingByStationId,
pushStationInfo, pushStationInfo,
getSettingInfo,
getParkingInfoList, getParkingInfoList,
bindParkingPlatform, bindParkingPlatform,
getRelationByStationId, getRelationByStationId,