|
|
@@ -8,6 +8,7 @@ import java.text.DecimalFormat;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
public class PriceUtils {
|
|
|
|
|
|
@@ -2984,7 +2985,7 @@ public class PriceUtils {
|
|
|
Product pro = new Product();
|
|
|
double max = Math.max(Math.floor(l / length) * Math.floor(w / width),
|
|
|
Math.floor(l / width) * Math.floor(w / length));
|
|
|
-
|
|
|
+ List<String> craft_list = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft());
|
|
|
// 报的数量需要多少张大纸
|
|
|
int num = (int) Math.ceil(count / max);
|
|
|
// if (count <= 1000) {
|
|
|
@@ -2998,6 +2999,9 @@ public class PriceUtils {
|
|
|
dj = 0.5;
|
|
|
}
|
|
|
pro.setPrice(130 + Math.ceil((num + 100) * dj));
|
|
|
+ if (craft_list.contains("异形") || craft_list.contains("异形模切")) {
|
|
|
+ pro.setPrice(Math.ceil(pro.getPrice() * 1.5));
|
|
|
+ }
|
|
|
double area = 0;
|
|
|
if ("烫金".equals(dto.getCraftTang())) {
|
|
|
int lszCountArr[] = new int[]{500, 1000, 2000, 3000, 5000, 10000, 20000};
|