update 下发停车优惠券不再判断充电度数

This commit is contained in:
Lemon
2024-01-06 13:41:31 +08:00
parent ccaba50f07
commit 82bd1862ee

View File

@@ -670,12 +670,12 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
// 给车辆绑定优惠券
try {
BigDecimal totalElectricity = new BigDecimal(data.getTotalElectricity());
if (totalElectricity.compareTo(BigDecimal.TEN) > 0) {
// 充电度数大于10度
String bindResult = bindCoupon(orderBasicInfo);
log.info("绑定优惠券 订单信息:{}, result:{}", orderBasicInfo, bindResult);
}
// BigDecimal totalElectricity = new BigDecimal(data.getTotalElectricity());
// if (totalElectricity.compareTo(BigDecimal.TEN) > 0) {
// // 充电度数大于10度
// }
String bindResult = bindCoupon(orderBasicInfo);
log.info("绑定优惠券 订单信息:{}, result:{}", orderBasicInfo, bindResult);
} catch (BusinessException e) {
log.error("绑定优惠券 error, code:{}, msg:{}", e.getCode(), e.getMessage());
} catch (Exception e) {