修改信封

This commit is contained in:
2025-07-11 10:16:03 +08:00
parent c89eb69f41
commit d9f77c25bc
2 changed files with 511 additions and 452 deletions
@@ -1735,9 +1735,18 @@ public class ProductService {
if (priceList.size() >= 4) {
priceList = priceList.subList(0, 4);
}
List<String> carft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>();
// 产品价格倍数
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() * product.getPriceMultiple()));
if (carft_list.contains("烫金")) {
if (carft_list.contains("2处")) {
product.setPrice(product.getPrice() + 100);
}
if (carft_list.contains("3处")) {
product.setPrice(product.getPrice() + 200);
}
}
}
// 根据款数重新算重量重量在数据库中
/*