diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index b9382c5..e3775c8 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -4639,12 +4639,68 @@ public class ProductService { return getAreaCenterPrice(count_list, count, area, prices, areas, number); case "水标": return getShuibiaoPrice(dto, length, width); + case "镭射吊牌": + return getLeiseDiaoPrice(dto, length, width); default: break; } return null; } + private List getLeiseDiaoPrice(Product dto, double length, double width) { + double[] prices = new double[]{170, 233, 370, 537, 643, 843, 1613, 3117, 4847}; + int[] count_list = new int[]{500, 1000, 2000, 3000, 4000, 5000, 10000, 20000, 30000}; + int num = getNum(width, length); + List priceList = new ArrayList<>(); + List craft_list = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft()); + + for (int i = 0; i < count_list.length; i++) { + int count_item = count_list[i]; + if (priceList.size() > 2) { + break; + } + if (dto.getCount() > count_item) { + continue; + } + double price = prices[i]; + price = price + price * 0.9 * (num - 1); + Product product = new Product(); + product.setCount(count_item); + product.setPrice(Math.ceil(price)); + priceList.add(product); + } + for (Product product : priceList) { + int item_count = product.getCount(); + double carft_price = 0; + + if (craft_list.contains("配葫芦针")) { + carft_price += Math.max(0.016 * item_count, 10); + } + if (craft_list.contains("配流苏")) { + carft_price += Math.max(0.15 * item_count, 30); + } + if (craft_list.contains("穿流苏")) { + carft_price += Math.max(0.5 * item_count, 100); + } + if (craft_list.contains("配尼龙绳")) { + if ("红色绳子".equals(dto.getShen_color())) { + carft_price += Math.max(0.009 * item_count, 10); + } else { + carft_price += Math.max(0.03 * item_count, 3); + } + } + if (craft_list.contains("穿尼龙绳")) { + carft_price += Math.max(0.2 * item_count, 40); + } + if (craft_list.contains("棉绳")) { + carft_price += Math.max(0.015 * item_count, 40); + } + product.setPrice(Math.ceil(product.getPrice() + carft_price) * dto.getNumber()); + } + + return priceList; + } + private List getShuibiaoPrice(Product dto, double length, double width) { List craft_list = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft()); int count = dto.getCount(); diff --git a/src/main/webapp/views/main.jsp b/src/main/webapp/views/main.jsp index f46cbdd..d3943fb 100644 --- a/src/main/webapp/views/main.jsp +++ b/src/main/webapp/views/main.jsp @@ -431,6 +431,7 @@
+
【新增】镭射吊牌价格更新
【新增】特种纸新增打码 烫金工艺 注意!!!雅柔纸打码烫金的工艺材质会比报价系统的材质偏黄点 接单的时候要跟客户沟通清楚 以免造成不必要的售后
【新增】双面不干胶-水标价格更新
【修改】手提袋重量修改
diff --git a/src/main/webapp/views/product/coupon.jsp b/src/main/webapp/views/product/coupon.jsp index f985a4e..f5893ae 100644 --- a/src/main/webapp/views/product/coupon.jsp +++ b/src/main/webapp/views/product/coupon.jsp @@ -630,8 +630,8 @@
常见工艺: - +<%-- +<%-- title="压痕"/>--%> +
+ +
+
+ +<%@include file="/views/copyResult.jsp" %> + + \ No newline at end of file