|
|
@@ -1364,15 +1364,19 @@ public class ProductService {
|
|
|
//第二款开始的设计费按照式设计内容
|
|
|
if (number > 1) {
|
|
|
double desFee = 0;
|
|
|
- if (role.indexOf("1045") == -1) {
|
|
|
- if (number == 2) {
|
|
|
- desFee = 5.5;
|
|
|
- }
|
|
|
- if (number == 3) {
|
|
|
- desFee = 5.5 + 3.5;
|
|
|
- }
|
|
|
- if (number > 3) {
|
|
|
- desFee = 5.5 + 3.5 + 2.5 * (number - 3);
|
|
|
+ if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
|
|
|
+ if (dto.getP() == 1) {
|
|
|
+ desFee = 0.6* (number - 1);
|
|
|
+ } else {
|
|
|
+ if (number == 2) {
|
|
|
+ desFee = 5.5;
|
|
|
+ }
|
|
|
+ if (number == 3) {
|
|
|
+ desFee = 5.5 + 3.5;
|
|
|
+ }
|
|
|
+ if (number > 3) {
|
|
|
+ desFee = 5.5 + 3.5 + 2.5 * (number - 3);
|
|
|
+ }
|
|
|
}
|
|
|
for (Product product : priceList) {
|
|
|
product.setPrice(Math.ceil(product.getPrice() + desFee));
|
|
|
@@ -1786,30 +1790,31 @@ public class ProductService {
|
|
|
double[] base_price = null;
|
|
|
length = 0.0;
|
|
|
height = 0.0;
|
|
|
- if ("0".equals(kindValue) && !"11".equals(kind2Value) && !"12".equals(kind2Value)) {
|
|
|
+ List<String> kind2ValueList = Arrays.asList("11", "12", "31", "37", "38", "62");
|
|
|
+ if ("0".equals(kindValue) && !kind2ValueList.contains(kind2Value)) {
|
|
|
base_count = new int[]{100, 500, 1000, 2000, 3000, 5000, 10000};
|
|
|
} else {
|
|
|
base_count = new int[]{500, 1000, 2000, 3000, 5000, 10000};
|
|
|
}
|
|
|
if ("1".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
- base_price = new double[]{420, 620, 1260, 2230, 3200, 5000, 9300};
|
|
|
+ base_price = new double[]{420, 627, 1056, 1980, 2920, 4785, 9240};
|
|
|
}
|
|
|
if ("1".equals(kindValue)) {
|
|
|
- base_price = new double[]{600, 1300, 2400, 3400, 5200, 9500};
|
|
|
+ base_price = new double[]{726, 1073, 1914, 2723, 4290, 7920};
|
|
|
}
|
|
|
length = 25.0;
|
|
|
- height = 24.0;
|
|
|
+ height = 23.0;
|
|
|
}
|
|
|
if ("2".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
- base_price = new double[]{480, 772, 1300, 2400, 3500, 5200, 9800};
|
|
|
+ base_price = new double[]{480, 644, 1089, 2046, 2970, 4785, 9240};
|
|
|
}
|
|
|
if ("1".equals(kindValue)) {
|
|
|
- base_price = new double[]{750, 1320, 2330, 3500, 5880, 11000};
|
|
|
+ base_price = new double[]{743, 1089, 1947, 2772, 4372, 8085};
|
|
|
}
|
|
|
- length = 25.0;
|
|
|
- height = 27.0;
|
|
|
+ length = 24.0;
|
|
|
+ height = 26.5;
|
|
|
}
|
|
|
if ("3".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
@@ -1823,13 +1828,13 @@ public class ProductService {
|
|
|
}
|
|
|
if ("4".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
- base_price = new double[]{420, 560, 950, 1750, 2500, 4000, 7600};
|
|
|
+ base_price = new double[]{420, 576, 896, 1600, 2304, 3760, 7040};
|
|
|
}
|
|
|
if ("1".equals(kindValue)) {
|
|
|
- base_price = new double[]{645, 1000, 1880, 2680, 4180, 7880};
|
|
|
+ base_price = new double[]{576, 880, 1568, 2256, 3600, 6880};
|
|
|
}
|
|
|
- length = 23.0;
|
|
|
- height = 25.0;
|
|
|
+ length = 13.0;
|
|
|
+ height = 16.0;
|
|
|
}
|
|
|
if ("5".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
@@ -1903,14 +1908,54 @@ public class ProductService {
|
|
|
}
|
|
|
if ("12".equals(kind2Value)) {
|
|
|
if ("0".equals(kindValue)) {
|
|
|
- base_price = new double[]{1000, 1500, 2500, 3500, 5300, 10000};
|
|
|
+ base_price = new double[]{1419, 2013, 3234, 4800, 7672, 11385};
|
|
|
}
|
|
|
if ("1".equals(kindValue)) {
|
|
|
- base_price = new double[]{850, 1400, 2100, 2800, 4100, 7800};
|
|
|
+ base_price = new double[]{1338, 1898, 3069, 4500, 7260, 10395};
|
|
|
}
|
|
|
length = 25.0;
|
|
|
height = 32.0;
|
|
|
}
|
|
|
+ if ("31".equals(kind2Value)) {
|
|
|
+ if ("0".equals(kindValue)) {
|
|
|
+ base_price = new double[]{528, 875, 1650, 2426, 3878, 7590};
|
|
|
+ }
|
|
|
+ if ("1".equals(kindValue)) {
|
|
|
+ base_price = new double[]{680, 957, 1716, 2475, 3878, 7095};
|
|
|
+ }
|
|
|
+ length = 23.0;
|
|
|
+ height = 21.0;
|
|
|
+ }
|
|
|
+ if ("37".equals(kind2Value)) {
|
|
|
+ if ("0".equals(kindValue)) {
|
|
|
+ base_price = new double[]{600, 990, 1848, 2723, 4455, 8580};
|
|
|
+ }
|
|
|
+ if ("1".equals(kindValue)) {
|
|
|
+ base_price = new double[]{710, 1040, 1848, 2624, 4125, 7755};
|
|
|
+ }
|
|
|
+ length = 23.0;
|
|
|
+ height = 21.0;
|
|
|
+ }
|
|
|
+ if ("38".equals(kind2Value)) {
|
|
|
+ if ("0".equals(kindValue)) {
|
|
|
+ base_price = new double[]{600, 924, 1650, 2376, 3878, 7260};
|
|
|
+ }
|
|
|
+ if ("1".equals(kindValue)) {
|
|
|
+ base_price = new double[]{600, 908, 1617, 2328, 3713, 7095};
|
|
|
+ }
|
|
|
+ length = 21.0;
|
|
|
+ height = 21.0;
|
|
|
+ }
|
|
|
+ if ("62".equals(kind2Value)) {
|
|
|
+ if ("0".equals(kindValue)) {
|
|
|
+ base_price = new double[]{578, 975, 1848, 2673, 5360, 10240};
|
|
|
+ }
|
|
|
+ if ("1".equals(kindValue)) {
|
|
|
+ base_price = new double[]{693, 1008, 1749, 2475, 4960, 9600};
|
|
|
+ }
|
|
|
+ length = 24.0;
|
|
|
+ height = 32.0;
|
|
|
+ }
|
|
|
Product pro = null;
|
|
|
double color_price = 0;
|
|
|
double bei_price = 0;
|
|
|
@@ -2671,29 +2716,33 @@ public class ProductService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if (role.indexOf("1045") == -1) {
|
|
|
+ if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
|
|
|
if (number > 1) {
|
|
|
double designFee = 0;
|
|
|
- if (!dto.getProTypeLabel().equals("婚礼报纸") && !dto.getProTypeLabel().equals("菜单")) {
|
|
|
- if (number == 2) {
|
|
|
- designFee = 5.5;
|
|
|
- }
|
|
|
- if (number == 3) {
|
|
|
- designFee = 5.5 + 3.5;
|
|
|
- }
|
|
|
- if (number > 3) {
|
|
|
- designFee = 5.5 + 3.5 + 2.5 * (number - 3);
|
|
|
- }
|
|
|
- }
|
|
|
- if (dto.getProTypeLabel().equals("菜单") || dto.getProTypeLabel().equals("婚礼报纸")) {
|
|
|
- if (number == 2) {
|
|
|
- designFee = 17;
|
|
|
- }
|
|
|
- if (number == 3) {
|
|
|
- designFee = 17 + 17;
|
|
|
+ if (dto.getP() == 1) {
|
|
|
+ designFee = 0.6 * (number - 1);
|
|
|
+ } else {
|
|
|
+ if (!dto.getProTypeLabel().equals("婚礼报纸") && !dto.getProTypeLabel().equals("菜单")) {
|
|
|
+ if (number == 2) {
|
|
|
+ designFee = 5.5;
|
|
|
+ }
|
|
|
+ if (number == 3) {
|
|
|
+ designFee = 5.5 + 3.5;
|
|
|
+ }
|
|
|
+ if (number > 3) {
|
|
|
+ designFee = 5.5 + 3.5 + 2.5 * (number - 3);
|
|
|
+ }
|
|
|
}
|
|
|
- if (number > 3) {
|
|
|
- designFee = 17 + 17 + 12 * (number - 3);
|
|
|
+ if (dto.getProTypeLabel().equals("菜单") || dto.getProTypeLabel().equals("婚礼报纸")) {
|
|
|
+ if (number == 2) {
|
|
|
+ designFee = 17;
|
|
|
+ }
|
|
|
+ if (number == 3) {
|
|
|
+ designFee = 17 + 17;
|
|
|
+ }
|
|
|
+ if (number > 3) {
|
|
|
+ designFee = 17 + 17 + 12 * (number - 3);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -3149,18 +3198,22 @@ public class ProductService {
|
|
|
|
|
|
if (("0".equals(kind) && "0".equals(kind2)) || ("1".equals(kind) && ("1".equals(kind2) || "3".equals(kind2) || "8".equals(kind2) || "15".equals(kind2))) || "2".equals(kind)) {
|
|
|
double desFee = 0;
|
|
|
- if (role.indexOf("1045") == -1) {
|
|
|
- if (number == 2) {
|
|
|
- desFee = 11;
|
|
|
- }
|
|
|
- if (number == 3) {
|
|
|
- desFee = 11 + 11;
|
|
|
- }
|
|
|
- if (number > 3) {
|
|
|
- desFee = 11 + 11 + 11 * (number - 3);
|
|
|
- }
|
|
|
- for (Product product : priceList) {
|
|
|
- product.setPrice(Math.ceil(product.getPrice() + desFee));
|
|
|
+ if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
|
|
|
+ if (dto.getP() == 1) {
|
|
|
+ desFee = 0.6 * (number - 1);
|
|
|
+ } else {
|
|
|
+ if (number == 2) {
|
|
|
+ desFee = 11;
|
|
|
+ }
|
|
|
+ if (number == 3) {
|
|
|
+ desFee = 11 + 11;
|
|
|
+ }
|
|
|
+ if (number > 3) {
|
|
|
+ desFee = 11 + 11 + 11 * (number - 3);
|
|
|
+ }
|
|
|
+ for (Product product : priceList) {
|
|
|
+ product.setPrice(Math.ceil(product.getPrice() + desFee));
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
if (dto.getP() == 1 || dto.getP() == 2 || dto.getP() == 3) {
|
|
|
@@ -4482,15 +4535,19 @@ public class ProductService {
|
|
|
}
|
|
|
if (number > 1) {
|
|
|
double desFee = 0;
|
|
|
- if (role.indexOf("1045") == -1) {
|
|
|
- if (number == 2) {
|
|
|
- desFee = 3.5;
|
|
|
- }
|
|
|
- if (number == 3) {
|
|
|
- desFee = 3.5 + 2.5;
|
|
|
- }
|
|
|
- if (number > 3) {
|
|
|
- desFee = 3.5 + 2.5 + 1.5 * (number - 3);
|
|
|
+ if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
|
|
|
+ if (dto.getP() == 1) {
|
|
|
+ desFee = 0.6* (number - 1);
|
|
|
+ } else {
|
|
|
+ if (number == 2) {
|
|
|
+ desFee = 3.5;
|
|
|
+ }
|
|
|
+ if (number == 3) {
|
|
|
+ desFee = 3.5 + 2.5;
|
|
|
+ }
|
|
|
+ if (number > 3) {
|
|
|
+ desFee = 3.5 + 2.5 + 1.5 * (number - 3);
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
if (dto.getP() == 1) {
|