修改特种纸名片模切价格
Esse commit está contido em:
@@ -1738,18 +1738,20 @@ public class ProductService {
|
||||
getCraft(dto, priceList, null, null, 0);
|
||||
}
|
||||
// 根据位数重新算价格
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * min * zhekou));
|
||||
}
|
||||
// 根据款数重新算价格
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * number));
|
||||
product.setPrice(Math.ceil(product.getPrice() * number * min * zhekou));
|
||||
}
|
||||
if ("芳怡".equals(kind) || "草香".equals(kind)) {
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.floor(product.getPrice() * 1.5));
|
||||
}
|
||||
}
|
||||
if ("皙贝".equals(kind) && craft_list.contains("异形模切")) {
|
||||
for (Product product : priceList) {
|
||||
product.setPrice(Math.ceil(product.getPrice() * 0.8));
|
||||
}
|
||||
}
|
||||
}
|
||||
// int tzWei = Integer.parseInt(Pattern.compile("[^0-9]").matcher(kind).replaceAll("").trim());// 获取材质中的克数
|
||||
int tzWei = 300;// 获取材质中的克数
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário