新增流苏工艺

This commit is contained in:
2026-04-08 15:36:24 +08:00
parent ee17035e69
commit 6b9c9feefb
3 changed files with 31 additions and 1 deletions
@@ -3136,12 +3136,19 @@ public class ProductService {
if (Arrays.binarySearch(dto.getCraft(), "配弹力绳") > -1) {
peijianPrice = 0.05;
}
for (Product product : priceList) {
if (peijianPrice > 0) {
product.setPrice(Math.ceil(product.getPrice() + peijianPrice * dto.getCount() * dto.getNumber() + 5));
}
}
if (Arrays.binarySearch(dto.getCraft(), "配流苏") > -1) {
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(5, 3 * dto.getCo_number())));
}
}
}
if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
if (number > 1) {
double designFee = 0;
@@ -364,7 +364,7 @@ public class PosterPrice {
areas = new double[]{2, 5, 7, 8, 10, 20, 50};
prices = new double[]{50, 40, 35, 32, 26, 24, 22};
last_price = 26;
min_price += 50 -5;
min_price += 50 - 5;
// 根据面积得到单价
weight = String.valueOf(DecimalFormat.format(area * 0.24 * number));
break;