|
@@ -38,7 +38,9 @@ public class ShoppingServiceImpl implements ShoppingService {
|
|
|
Double totalPrice = 0d;
|
|
|
for (CmOrganizeProducts products : productsList) {
|
|
|
products.setMainImage(AppUtils.getImageURL("product", products.getMainImage(), 0, domain));
|
|
|
- totalPrice += (products.getRetailPrice() * products.getProductCount());
|
|
|
+ if (products.getValidFlag().equals("1")) {
|
|
|
+ totalPrice += (products.getRetailPrice() * products.getProductCount());
|
|
|
+ }
|
|
|
}
|
|
|
shop.setTotalPrice(totalPrice);
|
|
|
}
|