This commit is contained in:
2025-06-04 10:45:00 +08:00
parent e27eae918b
commit b2ebe096aa
6 changed files with 104 additions and 12 deletions
@@ -1247,7 +1247,7 @@ public class ProductService {
if (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("压凹")) {
if (craft_list.contains("圆角") && !craft_list.contains("击凸") && !craft_list.contains("压凹") && !craft_list.contains("单面烫金") && !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("压凹"))) {
@@ -1256,11 +1256,18 @@ public class ProductService {
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("双面烫金"))) {
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
}
priceList = new ArrayList<>();
Product dto2 = null;
double rate = 1.0;
for (int i = 0; i < count_list.length; i++) {
double rate = 1.0;
if (count_list[i] < count) {
continue;
}
@@ -1270,6 +1277,9 @@ public class ProductService {
if (count_list[i] >= 400) {
rate = 0.8;
}
if (craft_list.contains("双面烫金")) {
rate = rate * 1.8;
}
dto2 = new Product();
dto2.setCount(count_list[i]);
dto2.setPrice(Math.ceil(prices[i] * rate));
@@ -1282,6 +1292,7 @@ public class ProductService {
} else {
product.setPrice(Math.floor(product.getPrice() * number * min));
}
}
return priceList;
} else if ("草香".equals(kind) || "芳怡".equals(kind)) {
+2 -2
View File
@@ -73,7 +73,7 @@ public class ZsPrice {
if (dto.getP() == 1) {
desFee = 0.6 * (number - 1);
} else {
desFee = 8* (number - 1);
desFee = 10* (number - 1);
// if (number == 2) {
// desFee = 5.75;
// }
@@ -93,7 +93,7 @@ public class ZsPrice {
} else if (dto.getP() == 5) {
desFee = 6;
} else {
desFee = 8;
desFee = 10;
}
price += desFee * (number - 1);
}