diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index b1294bf..e02cf48 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -2637,7 +2637,7 @@ public class ProductService { product.setPrice(Math.ceil(product.getPrice() + (number - 1) * 0.5)); - product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5)); + product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5 + 0.5)); if (product.getPrice() < apprise) { product.setPrice(apprise); } @@ -2708,7 +2708,7 @@ public class ProductService { // double base = number < 6 && number > 1 ? 5 : 0; double apprise = 0; for (Product product : priceList) { - product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5)); + product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5 + 0.5)); if (apprise > product.getPrice()) { product.setPrice(apprise); } @@ -5821,7 +5821,7 @@ public class ProductService { } Product pro = new Product(); pro.setCount(itemCount); - pro.setPrice(Math.ceil(prices[sizeIndex][i] * number)); + pro.setPrice(Math.ceil(prices[sizeIndex][i] * number * 1.2)); pro.setNumber(number); priceList.add(pro); } @@ -7173,8 +7173,7 @@ public class ProductService { return priceList; } - private List getAreaCenterPrice(int[] count_list, int count, double area, int[][] prices, - double[] areas, int number) { + private List getAreaCenterPrice(int[] count_list, int count, double area, int[][] prices, double[] areas, int number) { List priceList = new ArrayList<>(); for (int i = 0; i < count_list.length; i++) { int count_item = count_list[i]; diff --git a/src/main/webapp/views/product/wrappingPaper.jsp b/src/main/webapp/views/product/wrappingPaper.jsp index 4158e32..c24ad46 100644 --- a/src/main/webapp/views/product/wrappingPaper.jsp +++ b/src/main/webapp/views/product/wrappingPaper.jsp @@ -76,15 +76,16 @@ + 双面胶宽度10mm,长度9米、丝带宽度15毫米,长度22米,颜色随机!
配件: