新增opp袋尺寸
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user