新增信封材质

This commit is contained in:
2026-04-02 15:42:06 +08:00
parent 64e2c7062d
commit b1d63d3087
4 changed files with 140 additions and 60 deletions
@@ -1949,6 +1949,7 @@ public class ProductService {
// 彩色信封
case "9":
// 120克双胶牛皮
String kindValue9 = "";
if ("10".equals(kind)) {
dto.setKindValue("0");
priceList = productMapper.getThanPrice(dto);
@@ -1973,6 +1974,10 @@ public class ProductService {
}
}
} else {// 120/100克牛皮纸/ 140克珠光冰白彩色信封/高端珠光冰白烫金信封
kindValue9 = dto.getKindValue();
if ("12".equals(dto.getKindValue())) {
dto.setKindValue("4");
}
priceList = productMapper.getThanPrice(dto);
}
// 保留4个价格
@@ -1983,14 +1988,30 @@ public class ProductService {
// 产品价格倍数
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);
if ("4".equals(kindValue9)) {
if (carft_list.contains("烫金")) {
if (carft_list.contains("2处")) {
product.setPrice(product.getPrice() + 100);
}
if (carft_list.contains("3处")) {
product.setPrice(product.getPrice() + 200);
}
}
}
if ("12".equals(kindValue9)) {
if (carft_list.contains("烫金")) {
if (carft_list.contains("1处")) {
product.setPrice(product.getPrice() + 150);
}
if (carft_list.contains("2处")) {
product.setPrice(product.getPrice() + 300);
}
if (carft_list.contains("3处")) {
product.setPrice(product.getPrice() + 450);
}
}
}
}
// 根据款数重新算重量重量在数据库中
/*
@@ -5905,6 +5926,40 @@ public class ProductService {
// 报的数量需要多少张大纸
// 需要多少张大纸 = 数量 * 款数 /每张做多少个 ===总数量/每张多少个
double num = Math.ceil(dto.getCount() / max);
if (num > 3 && num <= 30) {
base_price = 19;
if ("2".equals(dto.getKind())) {
base_price = 33;
}
if ("3".equals(dto.getKind())) {
base_price = 38;
}
} else if (num > 31 && num <= 60) {
base_price = 17;
if ("2".equals(dto.getKind())) {
base_price = 31;
}
if ("3".equals(dto.getKind())) {
base_price = 36;
}
} else if (num > 61 && num <= 150) {
base_price = 15;
if ("2".equals(dto.getKind())) {
base_price = 29;
}
if ("3".equals(dto.getKind())) {
base_price = 34;
}
} else {
base_price = 14;
if ("2".equals(dto.getKind())) {
base_price = 28;
}
if ("3".equals(dto.getKind())) {
base_price = 33;
}
}
double craft_price = 0;
double bao_price = 0;
if (carftList.contains("打码")) {
@@ -6916,7 +6971,7 @@ public class ProductService {
case "6":
dto.setKindValue("1");
stickersList = productMapper.getThanPrice(dto);
if ("加凹凸".equals(dto.getAotu())) {
if ("加凹凸".equals(dto.getAotu()) || ("纯烫金".equals(dto.getAotu()))) {
for (Product product : stickersList) {
product.setPrice(Math.ceil(product.getPrice() * 2.3));
}