update 计算订单会员折扣逻辑

This commit is contained in:
2024-01-11 17:28:45 +08:00
parent e71ddfb2c8
commit ed47e1e1e0
4 changed files with 38 additions and 53 deletions

View File

@@ -2360,8 +2360,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
@Override
public Map<String, Object> generateOrderByCard(GenerateOrderDTO dto) throws Exception {
logger.info("充电桩主动申请启动充电生成订单 param:{}", JSON.toJSONString(dto));
// BigDecimal totalAccountAmount = BigDecimal.ZERO;
BigDecimal accountBalance = BigDecimal.ZERO;
BigDecimal accountBalance;
String payMode;
// 判断当前用户是否为平台测试员
PlatformTesterVO platformTesterVO = memberBasicInfoService.selectPlatformTesterStatus(dto.getMemberId());
@@ -2375,7 +2374,6 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
// 是平台测试员
accountBalance = Constants.whitelistDefaultAmount;
payMode = OrderPayModeEnum.PAYMENT_OF_WHITELIST.getValue();
} else if (pileStationWhitelist != null) {
// 站点白名单
accountBalance = Constants.whitelistDefaultAmount;