mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 08:18:34 +08:00
update 停车管理平台Service
This commit is contained in:
@@ -655,7 +655,6 @@ public class CommonService {
|
|||||||
}
|
}
|
||||||
if (StringUtils.equals(ParkingPlatformEnum.LU_TONG_YUN_TING_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
if (StringUtils.equals(ParkingPlatformEnum.LU_TONG_YUN_TING_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
||||||
// 路通云停
|
// 路通云停
|
||||||
|
|
||||||
BindCouponDTO dto = BindCouponDTO.builder()
|
BindCouponDTO dto = BindCouponDTO.builder()
|
||||||
.plateNumber(orderBasicInfo.getPlateNumber())
|
.plateNumber(orderBasicInfo.getPlateNumber())
|
||||||
.orderBasicInfo(orderBasicInfo)
|
.orderBasicInfo(orderBasicInfo)
|
||||||
@@ -728,25 +727,17 @@ public class CommonService {
|
|||||||
PileStationVO stationInfo = pileStationInfoService.getStationInfo(orderBasicInfo.getStationId());
|
PileStationVO stationInfo = pileStationInfoService.getStationInfo(orderBasicInfo.getStationId());
|
||||||
boolean discountFlag = false;
|
boolean discountFlag = false;
|
||||||
if (StringUtils.equals(ParkingPlatformEnum.LU_TONG_YUN_TING_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
if (StringUtils.equals(ParkingPlatformEnum.LU_TONG_YUN_TING_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
||||||
// 路通云停
|
if (StringUtils.equals(ParkingPlatformEnum.LU_TONG_YUN_TING_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
||||||
// 查询密钥等配置
|
// 路通云停
|
||||||
ThirdpartyParkingConfig parkingInfo = thirdPartyParkingConfigService.selectByPrimaryKey(Integer.parseInt(stationInfo.getParkingId()));
|
BindCouponDTO dto = BindCouponDTO.builder()
|
||||||
if (parkingInfo == null) {
|
.plateNumber(orderBasicInfo.getPlateNumber())
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_QUERY_PARKING_INFO_IS_NULL);
|
.orderBasicInfo(orderBasicInfo)
|
||||||
|
.build();
|
||||||
|
// 绑定优惠券
|
||||||
|
String s = ltytService.bindCoupon(dto);
|
||||||
|
// 如果s为ok, discountFlag为true
|
||||||
|
discountFlag = StringUtils.equals(s, "ok");
|
||||||
}
|
}
|
||||||
BindCouponDTO dto = BindCouponDTO.builder()
|
|
||||||
.appId(parkingInfo.getAppId())
|
|
||||||
.merchantId(parkingInfo.getParkingMerchantId())
|
|
||||||
.couponId(parkingInfo.getCouponId())
|
|
||||||
.secretKey(parkingInfo.getSecretKey())
|
|
||||||
.plateNumber(orderBasicInfo.getPlateNumber())
|
|
||||||
.plateColor(5) // 5-绿牌车
|
|
||||||
.orderBasicInfo(orderBasicInfo)
|
|
||||||
.build();
|
|
||||||
// 绑定优惠券
|
|
||||||
String s = ltytService.bindCoupon(dto);
|
|
||||||
// 如果s为ok, discountFlag为true
|
|
||||||
discountFlag = StringUtils.equals(s, "ok");
|
|
||||||
} else if (StringUtils.equals(ParkingPlatformEnum.SHEN_ZHEN_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
} else if (StringUtils.equals(ParkingPlatformEnum.SHEN_ZHEN_PLATFORM.getCode(), stationInfo.getParkingId())) {
|
||||||
// 深圳道闸
|
// 深圳道闸
|
||||||
QcyunParkCouponDTO dto = QcyunParkCouponDTO.builder()
|
QcyunParkCouponDTO dto = QcyunParkCouponDTO.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user