修改吊牌工艺价格

This commit is contained in:
2026-01-06 14:19:18 +08:00
parent f4319613e4
commit ba74fd7beb
2 changed files with 15 additions and 6 deletions
@@ -1190,6 +1190,15 @@ public class ProductService {
if (craft.contains("配棉绳")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 15)));
}
if (craft.contains("别针")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.016), 10)));
}
if (craft.contains("流苏")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 30)));
}
if (craft.contains("绳子")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 10)));
}
}
// 根据款数重新算价格/计算重量
for (Product product : priceList) {
@@ -5635,13 +5644,13 @@ public class ProductService {
if ("2".equals(dto.getKind())) {
max_width = 420;
max_length = 310;
base_price = 30;
base_price = 35;
min_price = 60;
}
if ("3".equals(dto.getKind())) {
max_width = 420;
max_length = 310;
base_price = 35;
base_price = 40;
min_price = 60;
}
width = width * 10 + 4;