修改硫酸纸工艺价格
This commit is contained in:
@@ -8,6 +8,7 @@ import java.text.DecimalFormat;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
public class PriceUtils {
|
public class PriceUtils {
|
||||||
|
|
||||||
@@ -2984,7 +2985,7 @@ public class PriceUtils {
|
|||||||
Product pro = new Product();
|
Product pro = new Product();
|
||||||
double max = Math.max(Math.floor(l / length) * Math.floor(w / width),
|
double max = Math.max(Math.floor(l / length) * Math.floor(w / width),
|
||||||
Math.floor(l / width) * Math.floor(w / length));
|
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);
|
int num = (int) Math.ceil(count / max);
|
||||||
// if (count <= 1000) {
|
// if (count <= 1000) {
|
||||||
@@ -2998,6 +2999,9 @@ public class PriceUtils {
|
|||||||
dj = 0.5;
|
dj = 0.5;
|
||||||
}
|
}
|
||||||
pro.setPrice(130 + Math.ceil((num + 100) * dj));
|
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;
|
double area = 0;
|
||||||
if ("烫金".equals(dto.getCraftTang())) {
|
if ("烫金".equals(dto.getCraftTang())) {
|
||||||
int lszCountArr[] = new int[]{500, 1000, 2000, 3000, 5000, 10000, 20000};
|
int lszCountArr[] = new int[]{500, 1000, 2000, 3000, 5000, 10000, 20000};
|
||||||
|
|||||||
Viittaa uudesa ongelmassa
Block a user