修改特种纸价格

This commit is contained in:
2025-09-24 14:55:31 +08:00
parent b0f83939d6
commit 662d2b010e
3 changed files with 86 additions and 36 deletions
@@ -1460,25 +1460,27 @@ public class ProductService {
} else if ("素芸".equals(kind)) {
int[] count_list = {100, 200, 400, 500, 1000, 2000, 3000, 5000, 10000};
double[] prices = {};
prices = new double[]{144, 272, 528, 660, 1280, 2560, 3840, 6400, 12800};
if (craft_list.contains("圆角") && !craft_list.contains("击凸") && !craft_list.contains("压凹") && !craft_list.contains("单面烫金") && !craft_list.contains("双面烫金")) {
if (craft_list.contains("击凸") || craft_list.contains("压凹") || (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) {
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
}
if (craft_list.contains("圆角")) {
prices = new double[]{146, 276, 536, 670, 1300, 2600, 3900, 6500, 13000};
}
if (craft_list.contains("圆角") && (craft_list.contains("击凸") || craft_list.contains("压凹"))) {
prices = new double[]{216, 366, 666, 820, 1550, 3100, 4600, 7800, 15500};
}
if (!craft_list.contains("圆角") && (craft_list.contains("击凸") || craft_list.contains("压凹"))) {
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
}
if (craft_list.contains("圆角") && (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) {
prices = new double[]{216, 366, 666, 820, 1550, 3100, 4600, 7800, 15500};
}
if (!craft_list.contains("圆角") && (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) {
if (craft_list.contains("异形模切") && (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) {
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
}
if (prices.length == 0 || craft_list.size() == 0 || craft_list.contains("异形模切")) {
prices = new double[]{144, 272, 528, 660, 1280, 2560, 3840, 6400, 12800};
if (craft_list.contains("异形模切") && (craft_list.contains("击凸") || craft_list.contains("压凹"))) {
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
}
priceList = new ArrayList<>();
Product dto2 = null;
@@ -1519,11 +1521,7 @@ public class ProductService {
int min = getNum(length, width);
for (Product product : priceList) {
if (craft_list.contains("异形模切")) {
product.setPrice(Math.floor(product.getPrice() * number * min * 2));
} else {
product.setPrice(Math.floor(product.getPrice() * number * min));
}
product.setPrice(Math.floor(product.getPrice() * number * min));
product.setWeight(df.format(number * (length) / 100 * (width) / 100 * product.getCount() * 0.5));
}
return priceList;