新增pvc卡片材质

This commit is contained in:
2026-04-13 16:22:19 +08:00
parent 2012ad0a80
commit 1d4cea0b9a
4 changed files with 75 additions and 17 deletions
@@ -1771,6 +1771,14 @@ public class ProductService {
for (Product product : priceList) {
product.setPrice(Math.ceil(product.getPrice() * number * min * zhekou));
}
for (Product product : priceList) {
if (craft_list.contains("配流苏")) {
product.setPrice(Math.ceil(product.getPrice() + 0.15 * dto.getCount() * number));
}
if (craft_list.contains("穿流苏")) {
product.setPrice(Math.ceil(product.getPrice() + 0.5 * dto.getCount() * number));
}
}
if ("500克拉丝闪银".equals(kind)) {
String[] craft = dto.getCraft();
if (!StringUtils.isEmpty(craft)) {
@@ -3917,10 +3925,15 @@ public class ProductService {
area = length * width / 10000;
priceList = new CardPrice().getPrice(count, area, dto.getKindValue());
// 根据款数重新算价格
if (dto.getKindValue().equals("3")) {// 0.76价格翻倍
for (Product product : priceList) {
product.setPrice(Math.floor(product.getPrice() * 1.8));
for (Product product : priceList) {
if (dto.getKindValue().equals("3")) {// 0.76价格翻倍
product.setPrice(Math.ceil(product.getPrice() * 1.8));
}
if (dto.getKindValue().equals("4") || dto.getKindValue().equals("5")) {// 0.76价格翻倍
product.setPrice(Math.ceil(product.getPrice() * 1.8 * 1.2));
}
}
if ((length == 8 && width == 4) || (length == 4 && width == 8)) {
@@ -4596,8 +4609,10 @@ public class ProductService {
for (Product product : priceList) {
if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) {
wei = 0.38;
} else if (dto.getKindValue().equals("1") || dto.getKindValue().equals("2") || dto.getKindValue().equals("3")) {
} else if (dto.getKindValue().equals("4") || dto.getKindValue().equals("5") || dto.getKindValue().equals("6")) {
wei = 0.84;
} else if (dto.getKindValue().equals("11") || dto.getKindValue().equals("12") || dto.getKindValue().equals("13")) {
wei = 0.76;
} else {
wei = 1;
}