|
|
@@ -982,47 +982,86 @@ public class PriceUtils {
|
|
|
}
|
|
|
}
|
|
|
if ("6".equals(kind)) {
|
|
|
- if ("无".equals(kind2)) {
|
|
|
- double price = 0;
|
|
|
- int[][] prices = {
|
|
|
- {144, 148, 166, 188, 193, 210, 232, 249, 251, 273, 317, 392, 464, 476, 674, 1028, 1802},
|
|
|
- {228, 238, 248, 255, 256, 258, 260, 268, 270, 278, 322, 397, 469, 481, 679, 1033, 1807},
|
|
|
- {330, 345, 350, 380, 386, 390, 420, 428, 430, 465, 538, 665, 780, 800, 1108, 1665, 2920},
|
|
|
- {480, 520, 530, 560, 568, 580, 591, 629, 633, 686, 791, 971, 1141, 1170, 1644, 2486, 4329},
|
|
|
- {800, 820, 860, 870, 880, 900, 955, 1016, 1023, 1107, 1276, 1563, 1838, 1885, 2645, 3997, 6955},
|
|
|
- {1400, 1430, 1450, 1527, 1560, 1690, 1852, 1969, 1982, 2145, 2470, 3022, 3549, 3640, 5102, 7702, 13390}
|
|
|
- };
|
|
|
- int[] count_list = {500, 1000, 2000, 3000, 5000, 10000};
|
|
|
- double[] areas = {16, 25, 30, 35, 36, 40, 45, 48.6, 49, 54, 64, 81, 97.2, 100, 145.8, 225, 400};
|
|
|
- for (int i = 0; i < count_list.length; i++) {
|
|
|
- int count_item = count_list[i];
|
|
|
- if (list.size() > 2) {
|
|
|
- break;
|
|
|
- }
|
|
|
- if (count > count_item) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- int count_index = Arrays.binarySearch(count_list, count_item);
|
|
|
- price = 0;
|
|
|
- if (count_index >= 0) {
|
|
|
- price = new PriceUtils().TablePrice(area * 10000, prices[count_index], areas);
|
|
|
- }
|
|
|
- Product product = new Product();
|
|
|
- product.setCount(count_item);
|
|
|
- product.setPrice(Math.ceil(price));
|
|
|
- list.add(product);
|
|
|
- }
|
|
|
+ double price = 0;
|
|
|
|
|
|
- } else if ("单面烫黄金".equals(kind2)) {
|
|
|
- double priceArr[] = {68, 48, 37, 36, 35, 34};
|
|
|
- list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+ int[][] prices = {
|
|
|
+ {144, 148, 166, 188, 193, 210, 232, 249, 251, 273, 317, 392, 464, 476, 674, 1028, 1802},
|
|
|
+ {228, 238, 248, 255, 256, 258, 260, 268, 270, 278, 322, 397, 469, 481, 679, 1033, 1807},
|
|
|
+ {330, 345, 350, 380, 386, 390, 420, 428, 430, 465, 538, 665, 780, 800, 1108, 1665, 2920},
|
|
|
+ {480, 520, 530, 560, 568, 580, 591, 629, 633, 686, 791, 971, 1141, 1170, 1644, 2486, 4329},
|
|
|
+ {800, 820, 860, 870, 880, 900, 955, 1016, 1023, 1107, 1276, 1563, 1838, 1885, 2645, 3997, 6955},
|
|
|
+ {1400, 1430, 1450, 1527, 1560, 1690, 1852, 1969, 1982, 2145, 2470, 3022, 3549, 3640, 5102, 7702, 13390}
|
|
|
+ };
|
|
|
+ int[] count_list = {500, 1000, 2000, 3000, 5000, 10000};
|
|
|
+ double[] areas = {16, 25, 30, 35, 36, 40, 45, 48.6, 49, 54, 64, 81, 97.2, 100, 145.8, 225, 400};
|
|
|
+
|
|
|
+ if ("单面烫黄金".equals(kind2)) {
|
|
|
+ prices = new int[][]{
|
|
|
+ {190, 190, 221, 252, 258, 283, 315, 338, 340, 372, 435, 539, 641, 658, 938, 1438, 2530},
|
|
|
+ {195, 195, 226, 257, 263, 288, 319, 343, 345, 377, 439, 544, 646, 663, 943, 1443, 2535},
|
|
|
+ {315, 350, 366, 413, 418, 456, 504, 535, 538, 585, 681, 845, 1001, 1027, 1459, 2229, 3913},
|
|
|
+ {468, 468, 538, 608, 622, 678, 748, 799, 805, 876, 1016, 1254, 1482, 1521, 2152, 3276, 5733},
|
|
|
+ {764, 764, 877, 991, 1014, 1105, 1219, 1301, 1310, 1423, 1651, 2038, 2406, 2470, 3494, 5314, 9295},
|
|
|
+ {1495, 1495, 1716, 1937, 1981, 2158, 2379, 2538, 2555, 2776, 3218, 3970, 4686, 4810, 6799, 10335, 18070}
|
|
|
+ };
|
|
|
} else if ("击凸".equals(kind2) || "压凹".equals(kind2)) {
|
|
|
- double priceArr[] = {75, 50, 40, 40, 39, 38};
|
|
|
- list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+ prices = new int[][]{
|
|
|
+ {196, 196, 229, 261, 268, 295, 326, 350, 352, 385, 450, 560, 665, 684, 976, 1496, 2635},
|
|
|
+ {201, 201, 234, 266, 273, 299, 331, 355, 357, 390, 455, 565, 670, 689, 981, 1501, 2639},
|
|
|
+ {345, 350, 398, 451, 462, 505, 558, 596, 600, 654, 760, 942, 1114, 1144, 1625, 2475, 4344},
|
|
|
+ {507, 507, 585, 663, 678, 741, 819, 876, 881, 959, 1115, 1380, 1634, 1677, 2379, 3627, 6357},
|
|
|
+ {829, 829, 955, 1082, 1107, 1209, 1336, 1427, 1437, 1563, 1817, 2249, 2659, 2730, 3871, 5899, 10335},
|
|
|
+ {1625, 1625, 1872, 2119, 2168, 2366, 2613, 2791, 2810, 3057, 3551, 4391, 5192, 5330, 7553, 11505, 20150}
|
|
|
+ };
|
|
|
+ } else if ("双面烫黄金".equals(kind2)) {
|
|
|
+ prices = new int[][]{
|
|
|
+ {270, 380, 442, 504, 516, 566, 630, 676, 680, 744, 870, 1078, 1282, 1316, 1876, 2876, 5060},
|
|
|
+ {278, 390, 452, 514, 526, 576, 638, 686, 690, 754, 878, 1088, 1292, 1326, 1886, 2886, 5070},
|
|
|
+ {460, 630, 732, 826, 836, 912, 1008, 1070, 1076, 1170, 1362, 1690, 2002, 2054, 2918, 4458, 7826},
|
|
|
+ {682, 936, 1076, 1216, 1244, 1356, 1496, 1598, 1610, 1752, 2032, 2508, 2964, 3042, 4304, 6552, 11466},
|
|
|
+ {1118, 1528, 1754, 1982, 2028, 2210, 2438, 2602, 2620, 2846, 3302, 4076, 4812, 4940, 6988, 10628, 18590},
|
|
|
+ {2194, 2990, 3432, 3874, 3962, 4316, 4758, 5076, 5110, 5552, 6436, 7940, 9372, 9620, 13598, 20670, 36140}
|
|
|
+ };
|
|
|
} else if ("单面烫黄金+凹凸".equals(kind2)) {
|
|
|
- double priceArr[] = {93, 63, 48, 48, 47, 46};
|
|
|
- list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+ prices = new int[][]{
|
|
|
+ {239, 239, 279, 321, 329, 361, 403, 433, 435, 477, 559, 698, 830, 853, 1222, 1877, 3310},
|
|
|
+ {244, 244, 284, 326, 334, 366, 408, 438, 440, 482, 564, 703, 835, 858, 1227, 1882, 3315},
|
|
|
+ {397, 430, 460, 524, 537, 588, 651, 697, 702, 766, 894, 1110, 1316, 1352, 1925, 2943, 5174},
|
|
|
+ {585, 585, 678, 772, 791, 865, 959, 1027, 1034, 1128, 1315, 1634, 1937, 1989, 2831, 4329, 7605},
|
|
|
+ {959, 959, 1111, 1264, 1294, 1417, 1570, 1680, 1692, 1844, 2150, 2670, 3165, 3250, 4625, 7069, 12415},
|
|
|
+ {1885, 1885, 2184, 2483, 2542, 2782, 3081, 3296, 3320, 3619, 4217, 5233, 6203, 6370, 9061, 13845, 24310}
|
|
|
+ };
|
|
|
}
|
|
|
+
|
|
|
+ for (int i = 0; i < count_list.length; i++) {
|
|
|
+ int count_item = count_list[i];
|
|
|
+ if (list.size() > 2) {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ if (count > count_item) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ int count_index = Arrays.binarySearch(count_list, count_item);
|
|
|
+ price = 0;
|
|
|
+ if (count_index >= 0) {
|
|
|
+ price = new PriceUtils().TablePrice(area * 10000, prices[count_index], areas);
|
|
|
+ }
|
|
|
+ Product product = new Product();
|
|
|
+ product.setCount(count_item);
|
|
|
+ product.setPrice(Math.ceil(price));
|
|
|
+ list.add(product);
|
|
|
+ }
|
|
|
+
|
|
|
+// if ("单面烫黄金".equals(kind2)) {
|
|
|
+// double priceArr[] = {68, 48, 37, 36, 35, 34};
|
|
|
+// list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+// } else if ("击凸".equals(kind2) || "压凹".equals(kind2)) {
|
|
|
+// double priceArr[] = {75, 50, 40, 40, 39, 38};
|
|
|
+// list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+// } else if ("单面烫黄金+凹凸".equals(kind2)) {
|
|
|
+// double priceArr[] = {93, 63, 48, 48, 47, 46};
|
|
|
+// list = acountTag600Price(area, count, priceArr, shengzi, flag, list);
|
|
|
+// }
|
|
|
}
|
|
|
return list;
|
|
|
}
|