修改种子纸

This commit is contained in:
2026-07-18 17:11:07 +08:00
parent a6f3ae0538
commit 9218055d64
3 changed files with 58 additions and 26 deletions
@@ -2791,7 +2791,7 @@ public class ProductService {
price += Math.ceil(Math.max(count * 0.3 * number, 5));
}
} else {
double maxPrice = 50;
if (count <= 50) {
unitPrice = 140;
} else if (count > 50 && count <= 100) {
@@ -2807,7 +2807,7 @@ public class ProductService {
} else {
unitPrice = 90;
}
if ("4".equals(dto.getZ3type())) {
if ("4".equals(dto.getZ3type()) && "400".equals(dto.getKindLabel())) {
if (count <= 50) {
unitPrice = 160;
} else if (count > 50 && count <= 100) {
@@ -2824,7 +2824,25 @@ public class ProductService {
unitPrice = 130;
}
}
price = Math.ceil((length * width * count * unitPrice) / 10000);//价格计算尺寸*数量*200/10000
if ("4".equals(dto.getZ3type()) && "1000".equals(dto.getKindLabel())) {
if (count <= 50) {
unitPrice = 400;
} else if (count > 50 && count <= 100) {
unitPrice = 380;
} else if (count > 100 && count <= 200) {
unitPrice = 360;
} else if (count > 200 && count <= 500) {
unitPrice = 340;
} else if (count > 500 && count <= 1000) {
unitPrice = 300;
} else if (count > 1000 && count <= 2000) {
unitPrice = 280;
} else {
unitPrice = 260;
}
maxPrice = 60;
}
price = Math.max(Math.ceil((length * width * count * unitPrice) / 10000), maxPrice);//价格计算尺寸*数量*200/10000
if (!StringUtils.isEmpty(crafts) && Arrays.asList(crafts).contains("编码")) {//起步价10
price += Math.max(count * 0.5, 10);
@@ -2856,6 +2874,9 @@ public class ProductService {
if (craft_list.size() > 0 && craft_list.contains("棉绳")) {
price += Math.max(Math.ceil(0.1 * number * count), 5);
}
if ("4".equals(dto.getZ3type()) && craft_list.size() > 0 && craft_list.contains("挂绳")) {
price += Math.max(Math.ceil(0.6 * number * count), 5);
}
}
Product dto2 = new Product();