|
|
@ -131,17 +131,24 @@ public class OrderPayServiceImpl implements OrderPayService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public HighOrder oilCardFleetPay(HighOrder order, HighUserCard userCard, String carLicensePlate) { |
|
|
|
public HighOrder oilCardFleetPay(HighOrder order, HighUserCard userCard, String carLicensePlate , String phone) { |
|
|
|
if (StringUtils.isNotBlank(carLicensePlate)) { |
|
|
|
if (StringUtils.isNotBlank(carLicensePlate) || StringUtils.isNotBlank(phone)) { |
|
|
|
// 加油订单
|
|
|
|
// 加油订单
|
|
|
|
HighGasOrder gasOrder = gasOrderService.getDetailByOrderNo(order.getOrderNo()); |
|
|
|
HighGasOrder gasOrder = gasOrderService.getDetailByOrderNo(order.getOrderNo()); |
|
|
|
if (gasOrder == null) { |
|
|
|
if (gasOrder == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到加油订单"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到加油订单"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(carLicensePlate)) { |
|
|
|
gasOrder.setGasCarLicensePlate(carLicensePlate); |
|
|
|
gasOrder.setGasCarLicensePlate(carLicensePlate); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(phone)) { |
|
|
|
|
|
|
|
gasOrder.setMemPhone(phone); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gasOrderService.updateGasOrder(gasOrder); |
|
|
|
gasOrderService.updateGasOrder(gasOrder); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 油卡扣款
|
|
|
|
// 油卡扣款
|
|
|
|
Map<String, Object> consumeMap = new HashMap<>(); |
|
|
|
Map<String, Object> consumeMap = new HashMap<>(); |
|
|
|
consumeMap.put("sourceType", OilCardRecordSourceTypeEnum.type2.getType()); |
|
|
|
consumeMap.put("sourceType", OilCardRecordSourceTypeEnum.type2.getType()); |
|
|
|