修改信封
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
// 根据款数重新算重量(重量在数据库中)
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user