From 412f67f7882f1442ffdf12f052d112a149d221a4 Mon Sep 17 00:00:00 2001 From: wangpengfei <1928057482@qq.com> Date: Mon, 8 Jan 2024 10:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yxt/yyth/api/appletgiftbag/GiftBagGoods.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/yxt/yyth/api/appletgiftbag/GiftBagGoods.java b/src/main/java/com/yxt/yyth/api/appletgiftbag/GiftBagGoods.java index ff5630b..9080791 100644 --- a/src/main/java/com/yxt/yyth/api/appletgiftbag/GiftBagGoods.java +++ b/src/main/java/com/yxt/yyth/api/appletgiftbag/GiftBagGoods.java @@ -24,12 +24,12 @@ public class GiftBagGoods { private String specificationUnit; //规格单位 private String totalValue; //总价值 - public String getPrice() { + public String getJPrice() { - if(StringUtils.isBlank(price)){ - price ="0"; + if(StringUtils.isBlank(jPrice)){ + jPrice ="0"; } DecimalFormat decimalFormat = new DecimalFormat("#0.00"); - return decimalFormat.format(Double.valueOf(price)); + return decimalFormat.format(Double.valueOf(jPrice)); } }