修改冷转印价格

This commit is contained in:
2026-02-03 14:48:24 +08:00
parent 8de1785270
commit 1929ebbfa3
2 changed files with 26 additions and 21 deletions
+24 -18
View File
@@ -3685,7 +3685,7 @@ public class PriceUtils {
}
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum, double area) {
public double CalculatePrice(List<String> craft_list, double count, int coNumber, double countNum, double area, int number) {
if (craft_list.contains("烫画")) {
double basePrice = 0;
area = area / 10000;
@@ -3699,29 +3699,35 @@ public class PriceUtils {
double price = 0;
if (craft_list.contains("冷转印")) {
double banfei = 200;
if (countNum > 1) {
price = 200 * countNum;
banfei = 0;
count = Math.abs(count - countNum);
double numCount = Math.max(Math.ceil(count / number), 1);
//单款数量少于5张的直接版费乘款数
if (numCount > 5) {
if (countNum > 1) {
price = 200 * countNum;
banfei = 0;
count = Math.abs(count - countNum);
}
if (count > 0) {
if (count <= 5) {
price += 200;
} else if (count < 75) {
price += 14 * count + banfei;
} else {
if (count < 89) {
count = 89;
}
price += 14 * count;
}
}
if (count > 0) {
if (count <= 5) {
price += 200;
} else if (count < 75) {
price += 14 * count + banfei;
} else {
if (count < 89) {
count = 89;
}
price += 14 * count;
}
}
} else {
price = 200 * countNum;
}
price = price + (coNumber - 1) * 100;
}
return price;
return Math.ceil(price);
}
public static List<Product> getYinBaiPrice(List<Product> productList, double width, double length) {