公式
This commit is contained in:
@@ -24,12 +24,12 @@ public class GiftBagGoods {
|
|||||||
private String specificationUnit; //规格单位
|
private String specificationUnit; //规格单位
|
||||||
private String totalValue; //总价值
|
private String totalValue; //总价值
|
||||||
|
|
||||||
public String getPrice() {
|
public String getJPrice() {
|
||||||
|
|
||||||
if(StringUtils.isBlank(price)){
|
if(StringUtils.isBlank(jPrice)){
|
||||||
price ="0";
|
jPrice ="0";
|
||||||
}
|
}
|
||||||
DecimalFormat decimalFormat = new DecimalFormat("#0.00");
|
DecimalFormat decimalFormat = new DecimalFormat("#0.00");
|
||||||
return decimalFormat.format(Double.valueOf(price));
|
return decimalFormat.format(Double.valueOf(jPrice));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user