停车平台, 停车优惠

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.poi.ExcelUtil;
import com.jsowell.pile.domain.PileStationInfo;
import com.jsowell.pile.domain.ThirdPartySettingInfo;
import com.jsowell.pile.domain.ThirdpartyParkingConfig;
import com.jsowell.pile.dto.FastCreateStationDTO;
import com.jsowell.pile.dto.PushStationInfoDTO;
@@ -147,6 +146,7 @@ public class PileStationInfoController extends BaseController {
/**
* 后管站点基本资料页面
*
* @return
*/
@PreAuthorize("@ss.hasPermi('pile:station:query')")
@@ -189,6 +189,7 @@ public class PileStationInfoController extends BaseController {
/**
* 高德地图商家推送静态信息状态
*
* @param dto
* @return
*/
@@ -229,6 +230,7 @@ public class PileStationInfoController extends BaseController {
/**
* 修改站点二维码前缀
*
* @param dto
* @return
*/
@@ -244,6 +246,7 @@ public class PileStationInfoController extends BaseController {
/**
* 查询站点互联互通配置
*
* @param id
* @return
*/
@@ -262,13 +265,13 @@ public class PileStationInfoController extends BaseController {
* @param info
* @return
*/
@PreAuthorize("@ss.hasPermi('pile:station:query')")
@PostMapping("/getSettingInfo")
public TableDataInfo getSettingInfo(@RequestBody ThirdPartySettingInfo info) {
List<ThirdPartySettingInfo> infos = thirdPartySettingInfoService.selectThirdPartySettingInfoList(info);
return getDataTable(infos);
// return AjaxResult.success(thirdPartySettingInfoService.selectSettingInfo(info));
}
// @PreAuthorize("@ss.hasPermi('pile:station:query')")
// @PostMapping("/getSettingInfo")
// public TableDataInfo getSettingInfo(@RequestBody ThirdPartySettingInfo info) {
// List<ThirdPartySettingInfo> infos = thirdPartySettingInfoService.selectThirdPartySettingInfoList(info);
// return getDataTable(infos);
// // return AjaxResult.success(thirdPartySettingInfoService.selectSettingInfo(info));
// }
/**
* 修改站点互联互通配置信息
@@ -293,10 +296,10 @@ public class PileStationInfoController extends BaseController {
// }
/**
* 推送充电站信息 notification_stationInfo
* http://localhost:8080/LianLian/pushStationInfo
*
* @param dto
* @return
*/
@@ -320,10 +323,10 @@ public class PileStationInfoController extends BaseController {
}
String result = commonService.commonPushStation(dto);
response = new RestApiResponse<>(result);
}catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error",e);
} catch (BusinessException e) {
logger.error("推送第三方平台充电站信息 error", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
}catch (Exception e) {
} catch (Exception e) {
logger.error("推送第三方平台充电站信息 error", e);
response = new RestApiResponse<>("推送失败,请联系管理员");
// 有报错,所有的都必须删除
@@ -335,6 +338,7 @@ public class PileStationInfoController extends BaseController {
/**
* 绑定停车平台(停车充电下发优惠券)
*
* @param dto
* @return
*/
@@ -345,7 +349,7 @@ public class PileStationInfoController extends BaseController {
try {
int i = pileStationInfoService.bindParkingPlatform(dto);
response = new RestApiResponse<>(i);
}catch (BusinessException e) {
} catch (BusinessException e) {
logger.error("绑定停车平台 error,", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
@@ -358,6 +362,7 @@ public class PileStationInfoController extends BaseController {
/**
* 获取停车平台列表
*
* @return
*/
@GetMapping("/getParkingInfoList")

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

View File

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