From b168d8a899b1df54199e0cf14607dd3b78a2dd87 Mon Sep 17 00:00:00 2001 From: tangqian Date: Thu, 1 Jun 2023 14:11:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=83=A8=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/recharge/RechargeOrderServiceImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeOrderServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeOrderServiceImpl.java index 274b699d6..86bff1e77 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeOrderServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeOrderServiceImpl.java @@ -214,11 +214,11 @@ public class RechargeOrderServiceImpl implements RechargeOrderService { List infoDOS1 = collect.get(orderDO.getOrderId()); for (RechargeOrderInfoDO infoDO : infoDOS1) { if (infoDO.getPrice().compareTo(new BigDecimal("240")) == 0) { - grade.append("套餐1,"); + grade.append("套餐" + infoDO.getPrice() + ","); } else if (infoDO.getPrice().compareTo(new BigDecimal("400")) == 0) { - grade.append("套餐2,"); + grade.append("套餐" + infoDO.getPrice() + ","); } else if (infoDO.getPrice().compareTo(new BigDecimal("640")) == 0) { - grade.append("套餐3"); + grade.append("套餐" + infoDO.getPrice()); } } orderDO.setGrade(grade.toString()); @@ -247,7 +247,7 @@ public class RechargeOrderServiceImpl implements RechargeOrderService { } else if (infoDO.getPrice().compareTo(new BigDecimal("400")) == 0) { grade.append("套餐" + infoDO.getPrice() + ","); } else if (infoDO.getPrice().compareTo(new BigDecimal("640")) == 0) { - grade.append("套餐" + infoDO.getPrice() + ","); + grade.append("套餐" + infoDO.getPrice()); } } orderDO.setGrade(grade.toString()); @@ -328,11 +328,11 @@ public class RechargeOrderServiceImpl implements RechargeOrderService { List infoDOS1 = collect.get(orderDO.getOrderId()); for (RechargeOrderInfoDO infoDO : infoDOS1) { if (infoDO.getPrice().compareTo(new BigDecimal("240")) == 0) { - grade.append("套餐1,"); + grade.append("套餐" + infoDO.getPrice() + ","); } else if (infoDO.getPrice().compareTo(new BigDecimal("400")) == 0) { - grade.append("套餐2,"); + grade.append("套餐" + infoDO.getPrice() + ","); } else if (infoDO.getPrice().compareTo(new BigDecimal("640")) == 0) { - grade.append("套餐3"); + grade.append("套餐" + infoDO.getPrice()); } } orderDO.setGrade(grade.toString());