新增防水布

This commit is contained in:
2026-06-21 13:00:31 +08:00
parent 28428f6135
commit 91f5ddcf6f
2 changed files with 25 additions and 4 deletions
@@ -5284,7 +5284,7 @@ public class ProductService {
if ("黑胶涤纶布".equals(dto.getKindValue())) {
basePrice = basePrice + 1;
}
price = Math.ceil(basePrice * area * count * number);
price = Math.ceil(Math.max(basePrice * area * count, 50) * number);
}
pro.setPrice(Math.ceil(price));
@@ -5297,6 +5297,9 @@ public class ProductService {
if (craft_list.contains("防风绳")) {
product.setPrice(Math.floor(product.getPrice() + dto.getPcount() * 2));
}
if (craft_list.contains("圆盘")) {
product.setPrice(Math.floor(product.getPrice() + dto.getStickNum() * 8));
}
product.setWeight(String.valueOf(area * count * number * 0.08 + dto.getShuliang() * 3.3));
}