帆布新增旗杆

This commit is contained in:
2026-03-31 14:37:41 +08:00
parent f8374b1be3
commit 64e2c7062d
3 changed files with 357 additions and 317 deletions
@@ -4417,8 +4417,12 @@ public class ProductService {
return priceList;
case "帆布":
priceList = new PriceUtils().getFbPrice(dto, number, width, length, count, priceList);
List<String> carftList = dto.getCraft() == null ? new ArrayList<>() : Arrays.asList(dto.getCraft());
for (Product product : priceList) {
if (product.getCount() != null && number != null) {
if (carftList.contains("伸缩杆70-120CM")) {
product.setPrice(product.getPrice() + 2 * Math.max(dto.getPcount(), 1));
}
product.setWeight(df.format(0.28 * width * length * product.getCount() / 10000 * number));
}
}
@@ -3692,7 +3692,7 @@ public class PriceUtils {
if (area < 7.5) {
basePrice = 90;
} else {
basePrice = 70;
basePrice = 80;
}
return Math.max(Math.ceil(area * basePrice * 1.2), 50);