配置充电停车优惠

This commit is contained in:
Guoqs
2025-02-19 11:52:27 +08:00
parent 052ed2b0ed
commit 116b122e61
3 changed files with 100 additions and 100 deletions

View File

@@ -747,7 +747,7 @@ public class CommonService {
// 绑定优惠券
String s = ltytService.bindCoupon(dto);
// 如果s为ok, discountFlag为true
discountFlag = StringUtils.equals(s, "ok");
discountFlag = StringUtils.equalsIgnoreCase(s, "ok");
} else if (StringUtils.equals(ParkingPlatformEnum.SHEN_ZHEN_PLATFORM.getCode(), parkingPlatformId)) {
// 深圳道闸
QcyunParkCouponDTO dto = QcyunParkCouponDTO.builder()

View File

@@ -11,7 +11,6 @@ import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.sign.MD5Util;
import com.jsowell.pile.domain.CarCouponRecord;
import com.jsowell.pile.domain.OrderBasicInfo;
import com.jsowell.pile.domain.ThirdpartyParkingConfig;
import com.jsowell.pile.dto.lutongyunting.BindCouponDTO;
@@ -26,7 +25,8 @@ import org.springframework.stereotype.Service;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.*;
import java.util.Locale;
import java.util.TreeMap;
import java.util.concurrent.TimeUnit;
/**
@@ -144,14 +144,14 @@ public class LTYTServiceImpl implements LTYTService {
String msg = resultJson.getString("msg");
// 将下发优惠券信息存入表
CarCouponRecord carCouponRecord = new CarCouponRecord();
carCouponRecord.setOrderCode(orderBasicInfo.getOrderCode());
carCouponRecord.setReturnCode(String.valueOf(resultJson.get("code")));
carCouponRecord.setReturnMsg(msg);
carCouponRecord.setPlateNumber(dto.getPlateNumber());
carCouponRecord.setStationId(Long.parseLong(orderBasicInfo.getStationId()));
carCouponRecordService.insertCarCouponRecord(carCouponRecord);
// CarCouponRecord carCouponRecord = new CarCouponRecord();
// carCouponRecord.setOrderCode(orderBasicInfo.getOrderCode());
// carCouponRecord.setReturnCode(String.valueOf(resultJson.get("code")));
// carCouponRecord.setReturnMsg(msg);
// carCouponRecord.setPlateNumber(dto.getPlateNumber());
// carCouponRecord.setStationId(Long.parseLong(orderBasicInfo.getStationId()));
//
// carCouponRecordService.insertCarCouponRecord(carCouponRecord);
return msg;
}