公式
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user