修改海报价格,修改滴塑价格

Šī revīzija ir iekļauta:
2026-01-23 08:56:31 +08:00
vecāks 95b8905ff4
revīzija 614388da7f
2 mainīti faili ar 15 papildinājumiem un 6 dzēšanām
@@ -1233,6 +1233,11 @@ public class ProductService {
if (craft.contains("绳子")) { if (craft.contains("绳子")) {
product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 10))); product.setPrice(Math.ceil(product.getPrice() + Math.max(Math.ceil(product.getCount() * 0.015), 10)));
} }
if ("击凸".equals(dto.getAotu()) || "压凹".equals(dto.getAotu())) {
if (min > 1) {
product.setPrice(Math.ceil(product.getPrice() * 1.5));
}
}
} }
// 根据款数重新算价格/计算重量 // 根据款数重新算价格/计算重量
for (Product product : priceList) { for (Product product : priceList) {
@@ -3611,7 +3616,7 @@ public class ProductService {
} }
if (number > 1 && width != null && length != null && width * length * 10000 < 40 * 50) { if (number > 1 && width != null && length != null && width * length * 10000 < 40 * 50) {
if (("0".equals(kind) && "0".equals(kind2)) || ("1".equals(kind) && ("1".equals(kind2) || "3".equals(kind2) || "8".equals(kind2) || "15".equals(kind2))) || "2".equals(kind)) { if (("0".equals(kind) && "0".equals(kind2)) || "2".equals(kind)) {
double desFee = 0; double desFee = 0;
if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) { if (!role.contains("1045") && !role.contains("1054") && !role.contains("1029")) {
if (dto.getP() == 1) { if (dto.getP() == 1) {
@@ -5122,11 +5127,17 @@ public class ProductService {
} }
double craftPrice = 0; double craftPrice = 0;
double miniCraftPrice = 10; double miniCraftPrice = 10;
if (craft_list.contains("可变二维码") || craft_list.contains("序列号")) { if (craft_list.contains("可变二维码")) {
craftPrice = 0.02 * itemCount; craftPrice = 0.02 * itemCount;
miniCraftPrice = 60;
}
if (craft_list.contains("序列号")) {
craftPrice = 0.02 * itemCount;
miniCraftPrice = 15;
} }
if (craft_list.contains("可变二维码+序列号")) { if (craft_list.contains("可变二维码+序列号")) {
craftPrice = 0.03 * itemCount; craftPrice = 0.03 * itemCount;
miniCraftPrice = 75;
} }
Product pro = new Product(); Product pro = new Product();
pro.setCount(itemCount); pro.setCount(itemCount);
@@ -7330,7 +7341,7 @@ public class ProductService {
} else { } else {
danjia = 0.1; danjia = 0.1;
} }
if(dto.getPcount() == 3){ if (dto.getPcount() == 3) {
danjia = 0.5; danjia = 0.5;
} }
if ("上下编码".equals(dto.getBianma())) { if ("上下编码".equals(dto.getBianma())) {
@@ -2174,9 +2174,7 @@ public class PriceUtils {
if (dto.getN_mq_num() > 0) { if (dto.getN_mq_num() > 0) {
price += 10 * dto.getN_mq_num(); price += 10 * dto.getN_mq_num();
} }
if (number > 1) { price = Math.ceil(price + (number - 1) * 8);
price *= 1.3;
}
pro.setCount(count / number); pro.setCount(count / number);
pro.setPrice(price); pro.setPrice(price);
list.add(pro); list.add(pro);