mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-28 11:08:12 +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.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")
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -255,10 +255,8 @@ import stationWhiteList from "@/views/pile/station/stationWhiteList";
|
||||
import {
|
||||
getStationInfo,
|
||||
updateStationQRCodePrefix,
|
||||
getSettingByStationId,
|
||||
updateSettingByStationId,
|
||||
pushStationInfo,
|
||||
getSettingInfo,
|
||||
getParkingInfoList,
|
||||
bindParkingPlatform,
|
||||
getRelationByStationId,
|
||||
|
||||
Reference in New Issue
Block a user