diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index f2d1e33..c7c2767 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -930,6 +930,12 @@ public class ProductService { if ("12*6".equals(dto.getToothpick_size())) { carft_base_price = 15; } + if ("8*10".equals(dto.getToothpick_size())) { + carft_base_price = 17; + } + if ("8*12".equals(dto.getToothpick_size())) { + carft_base_price = 19; + } carft_price += carft_base_price * Math.ceil(product.getCount() / 1000.0); } product.setPrice(Math.floor((product.getPrice() + carft_price) * number)); diff --git a/src/main/webapp/views/product/coupon.jsp b/src/main/webapp/views/product/coupon.jsp index b64efce..915e589 100644 --- a/src/main/webapp/views/product/coupon.jsp +++ b/src/main/webapp/views/product/coupon.jsp @@ -757,6 +757,8 @@