From e795cbe1d93ab16efda34bbf07b45325ab185001 Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Fri, 12 Jun 2026 14:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=B9=E7=A7=8D=E7=BA=B8?= =?UTF-8?q?=E5=90=8D=E7=89=87=E6=A8=A1=E5=88=87=E5=8A=A0=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/lingtao/net/service/ProductService.java | 13 ++++++------- src/main/java/lingtao/net/util/PriceUtils.java | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index c3363ad..853711a 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -8502,26 +8502,25 @@ public class ProductService { } } if ("特种纸名片".equals(dto.getProTypeValue()) && craftList.contains("异形模切")) {// 200-500张按照原有的价格乘以3倍 1000-5000张按照原有的价格乘以2.4倍 5000-10000张按照原有的价格乘以2倍 - double[] prices = {140, 190, 260, 470, 690, 1110, 2190}; + double[] prices = {112, 152, 208, 376, 552, 888, 1328}; int[] counts = {200, 500, 1000, 2000, 3000, 5000, 10000}; int num = getNum(width, length); if (num == 1) { } else if (num == 2) { - prices = new double[]{250, 350, 475, 860, 1250, 2025, 3990}; + prices = new double[]{200, 280, 380, 688, 1000, 1620, 2420}; } else if (num == 3) { - prices = new double[]{340, 470, 625, 1140, 1650, 2675, 5250}; + prices = new double[]{272, 376, 500, 912, 1320, 2140, 3100}; } else if (num == 5) { - prices = new double[]{475, 650, 870, 1575, 2290, 3425, 6750}; + prices = new double[]{380, 520, 696, 1260, 1832, 2740, 4100}; } else if (num == 6) { - prices = new double[]{600, 800, 1100, 1900, 2550, 4000, 7900}; + prices = new double[]{480, 640, 880, 1520, 2040, 3200, 4800}; } else { - prices = new double[]{750, 950, 1300, 2500, 3450, 4900, 9400}; + prices = new double[]{600, 760, 1040, 2000, 2760, 3920, 5700}; } for (Product product : priceList) { for (int i = 0; i < counts.length; i++) { if (counts[i] == product.getCount()) { product.setPrice(prices[i] * dto.getNumber()); - } } } diff --git a/src/main/java/lingtao/net/util/PriceUtils.java b/src/main/java/lingtao/net/util/PriceUtils.java index 43f3120..e85758c 100644 --- a/src/main/java/lingtao/net/util/PriceUtils.java +++ b/src/main/java/lingtao/net/util/PriceUtils.java @@ -42,7 +42,7 @@ public class PriceUtils { area = Double.valueOf(df.format(area * count)); if (area <= 20) { yinrPrice = 260; - lowerPrice = 550; + lowerPrice = 400; } else if (area <= 150) { yinrPrice = 300; lowerPrice = 600;