mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 07:18:31 +08:00
停车平台, 停车优惠
This commit is contained in:
@@ -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;
|
||||||
@@ -147,6 +146,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 后管站点基本资料页面
|
* 后管站点基本资料页面
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('pile:station:query')")
|
@PreAuthorize("@ss.hasPermi('pile:station:query')")
|
||||||
@@ -189,6 +189,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 高德地图商家推送静态信息状态
|
* 高德地图商家推送静态信息状态
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -229,6 +230,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改站点二维码前缀
|
* 修改站点二维码前缀
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -244,6 +246,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询站点互联互通配置
|
* 查询站点互联互通配置
|
||||||
|
*
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -262,13 +265,13 @@ public class PileStationInfoController extends BaseController {
|
|||||||
* @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));
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改站点互联互通配置信息
|
* 修改站点互联互通配置信息
|
||||||
@@ -293,10 +296,10 @@ public class PileStationInfoController extends BaseController {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 推送充电站信息 notification_stationInfo
|
* 推送充电站信息 notification_stationInfo
|
||||||
* http://localhost:8080/LianLian/pushStationInfo
|
* http://localhost:8080/LianLian/pushStationInfo
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -320,10 +323,10 @@ public class PileStationInfoController extends BaseController {
|
|||||||
}
|
}
|
||||||
String result = commonService.commonPushStation(dto);
|
String result = commonService.commonPushStation(dto);
|
||||||
response = new RestApiResponse<>(result);
|
response = new RestApiResponse<>(result);
|
||||||
}catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
logger.error("推送第三方平台充电站信息 error",e);
|
logger.error("推送第三方平台充电站信息 error", e);
|
||||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||||
}catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("推送第三方平台充电站信息 error", e);
|
logger.error("推送第三方平台充电站信息 error", e);
|
||||||
response = new RestApiResponse<>("推送失败,请联系管理员");
|
response = new RestApiResponse<>("推送失败,请联系管理员");
|
||||||
// 有报错,所有的都必须删除
|
// 有报错,所有的都必须删除
|
||||||
@@ -335,6 +338,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定停车平台(停车充电下发优惠券)
|
* 绑定停车平台(停车充电下发优惠券)
|
||||||
|
*
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@@ -345,7 +349,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
int i = pileStationInfoService.bindParkingPlatform(dto);
|
int i = pileStationInfoService.bindParkingPlatform(dto);
|
||||||
response = new RestApiResponse<>(i);
|
response = new RestApiResponse<>(i);
|
||||||
}catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
logger.error("绑定停车平台 error,", e);
|
logger.error("绑定停车平台 error,", e);
|
||||||
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
response = new RestApiResponse<>(e.getCode(), e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -358,6 +362,7 @@ public class PileStationInfoController extends BaseController {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取停车平台列表
|
* 获取停车平台列表
|
||||||
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getParkingInfoList")
|
@GetMapping("/getParkingInfoList")
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user