|
@@ -1247,7 +1247,7 @@ public class ProductService {
|
|
|
if (craft_list.size() == 0 || craft_list.contains("异形模切")) {
|
|
if (craft_list.size() == 0 || craft_list.contains("异形模切")) {
|
|
|
prices = new double[]{144, 272, 528, 660, 1280, 2560, 3840, 6400, 12800};
|
|
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};
|
|
prices = new double[]{146, 276, 536, 670, 1300, 2600, 3900, 6500, 13000};
|
|
|
}
|
|
}
|
|
|
if (craft_list.contains("圆角") && (craft_list.contains("击凸") || craft_list.contains("压凹"))) {
|
|
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("压凹"))) {
|
|
if (!craft_list.contains("圆角") && (craft_list.contains("击凸") || craft_list.contains("压凹"))) {
|
|
|
prices = new double[]{214, 362, 658, 810, 1530, 3060, 4590, 7650, 15300};
|
|
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<>();
|
|
priceList = new ArrayList<>();
|
|
|
Product dto2 = null;
|
|
Product dto2 = null;
|
|
|
- double rate = 1.0;
|
|
|
|
|
|
|
+
|
|
|
for (int i = 0; i < count_list.length; i++) {
|
|
for (int i = 0; i < count_list.length; i++) {
|
|
|
|
|
+ double rate = 1.0;
|
|
|
if (count_list[i] < count) {
|
|
if (count_list[i] < count) {
|
|
|
continue;
|
|
continue;
|
|
|
}
|
|
}
|
|
@@ -1270,6 +1277,9 @@ public class ProductService {
|
|
|
if (count_list[i] >= 400) {
|
|
if (count_list[i] >= 400) {
|
|
|
rate = 0.8;
|
|
rate = 0.8;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (craft_list.contains("双面烫金")) {
|
|
|
|
|
+ rate = rate * 1.8;
|
|
|
|
|
+ }
|
|
|
dto2 = new Product();
|
|
dto2 = new Product();
|
|
|
dto2.setCount(count_list[i]);
|
|
dto2.setCount(count_list[i]);
|
|
|
dto2.setPrice(Math.ceil(prices[i] * rate));
|
|
dto2.setPrice(Math.ceil(prices[i] * rate));
|
|
@@ -1282,6 +1292,7 @@ public class ProductService {
|
|
|
} else {
|
|
} else {
|
|
|
product.setPrice(Math.floor(product.getPrice() * number * min));
|
|
product.setPrice(Math.floor(product.getPrice() * number * min));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
return priceList;
|
|
return priceList;
|
|
|
} else if ("草香".equals(kind) || "芳怡".equals(kind)) {
|
|
} else if ("草香".equals(kind) || "芳怡".equals(kind)) {
|