公式
This commit is contained in:
@@ -219,7 +219,8 @@ public class AppletGiftBagService extends MybatisBaseService<AppletGiftBagMapper
|
|||||||
double i=0;
|
double i=0;
|
||||||
DecimalFormat decimalFormat = new DecimalFormat("#0.00");
|
DecimalFormat decimalFormat = new DecimalFormat("#0.00");
|
||||||
for(GiftBagGoods goods:goodsList){
|
for(GiftBagGoods goods:goodsList){
|
||||||
i=i+Double.valueOf(goods.getPrice())*Double.valueOf(goods.getGoodsNumber());
|
// i=i+Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getGoodsNumber());
|
||||||
|
i=i+Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getWeight());
|
||||||
goods.setIconUrl(fileUploadComponent.getUrlPrefix() +goods.getIconUrl());
|
goods.setIconUrl(fileUploadComponent.getUrlPrefix() +goods.getIconUrl());
|
||||||
goods.setTotalValue(String.valueOf(decimalFormat.format(Double.valueOf(goods.getGoodsNumber())*Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getWeight()))));
|
goods.setTotalValue(String.valueOf(decimalFormat.format(Double.valueOf(goods.getGoodsNumber())*Double.valueOf(goods.getJPrice())*Double.valueOf(goods.getWeight()))));
|
||||||
// goods.setJPrice(String.valueOf(decimalFormat.format(Double.valueOf(goods.getPrice())*Double.valueOf(goods.getWeight()))));
|
// goods.setJPrice(String.valueOf(decimalFormat.format(Double.valueOf(goods.getPrice())*Double.valueOf(goods.getWeight()))));
|
||||||
|
|||||||
Reference in New Issue
Block a user