修改特种纸名片模切加个

This commit is contained in:
2026-06-12 14:52:10 +08:00
parent 71c7722514
commit e795cbe1d9
2 changed files with 7 additions and 8 deletions
@@ -8502,26 +8502,25 @@ public class ProductService {
} }
} }
if ("特种纸名片".equals(dto.getProTypeValue()) && craftList.contains("异形模切")) {// 200-500张按照原有的价格乘以3倍 1000-5000张按照原有的价格乘以2.4倍 5000-10000张按照原有的价格乘以2倍 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[] counts = {200, 500, 1000, 2000, 3000, 5000, 10000};
int num = getNum(width, length); int num = getNum(width, length);
if (num == 1) { if (num == 1) {
} else if (num == 2) { } 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) { } 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) { } 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) { } 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 { } 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 (Product product : priceList) {
for (int i = 0; i < counts.length; i++) { for (int i = 0; i < counts.length; i++) {
if (counts[i] == product.getCount()) { if (counts[i] == product.getCount()) {
product.setPrice(prices[i] * dto.getNumber()); product.setPrice(prices[i] * dto.getNumber());
} }
} }
} }
@@ -42,7 +42,7 @@ public class PriceUtils {
area = Double.valueOf(df.format(area * count)); area = Double.valueOf(df.format(area * count));
if (area <= 20) { if (area <= 20) {
yinrPrice = 260; yinrPrice = 260;
lowerPrice = 550; lowerPrice = 400;
} else if (area <= 150) { } else if (area <= 150) {
yinrPrice = 300; yinrPrice = 300;
lowerPrice = 600; lowerPrice = 600;