新增opp袋尺寸

This commit is contained in:
2025-08-21 10:37:28 +08:00
parent 20aa475290
commit ba9d956984
2 changed files with 8 additions and 0 deletions
@@ -930,6 +930,12 @@ public class ProductService {
if ("12*6".equals(dto.getToothpick_size())) {
carft_base_price = 15;
}
if ("8*10".equals(dto.getToothpick_size())) {
carft_base_price = 17;
}
if ("8*12".equals(dto.getToothpick_size())) {
carft_base_price = 19;
}
carft_price += carft_base_price * Math.ceil(product.getCount() / 1000.0);
}
product.setPrice(Math.floor((product.getPrice() + carft_price) * number));