修改烫画,pvc卡片,pvc不干胶

This commit is contained in:
2025-08-12 16:55:08 +08:00
parent 47b15d5eef
commit 4affce1e71
4 changed files with 63 additions and 18 deletions
@@ -7,7 +7,7 @@ import lingtao.net.bean.Product;
public class CardPrice {
int countArr[] = { 500, 1000, 2000, 3000, 5000, 10000};
public List<Product> getCardPrice(int count, Double area, List<Product> list, Double[] priceArr, String kind) {
Product pro = new Product();
for (int i = 0; i < countArr.length; i++) {
@@ -24,13 +24,13 @@ public class CardPrice {
}else {
pro.setPrice(Math.ceil(area * countArr[i] * priceArr[i]));
}
list.add(pro);
}
return list;
}
//1万以上报价
public List<Product> getMorePrice(int count, Double area) {
List<Product> list = new ArrayList<Product>();
@@ -60,15 +60,15 @@ public class CardPrice {
dj = 19.0;
} else if (area <= 0.12) {
dj = 17.0;
}
}
pro = new Product();
pro.setCount(count);
pro.setPrice(Math.ceil(dj * 10000 * area * 1.6));
list.add(pro);
return list;
}
// 1万以下报价
public List<Product> getPrice(int count, Double area, String kind) {
List<Product> list = new ArrayList<Product>();
@@ -106,7 +106,7 @@ public class CardPrice {
Double priceArrA[] = { 40.0, 35.0, 33.0, 32.0, 28.0, 28.0};
list = getCardPrice(count, area, list, priceArrA, kind);
} else if (area <= 0.009) {
Double priceArrA[] = { 39.0, 34.0, 32.0, 31.0, 27.0, 37.0};
Double priceArrA[] = { 39.0, 34.0, 32.0, 31.0, 27.0, 26.0};
list = getCardPrice(count, area, list, priceArrA, kind);
} else if (area <= 0.014) {
Double priceArrA[] = { 33.0, 28.0, 25.0, 23.0, 20.0, 20.0};
@@ -120,7 +120,7 @@ public class CardPrice {
} else if (area <= 0.12) {
Double priceArrA[] = { 26.0, 23.0, 20.0, 18.0, 17.0, 17.0};
list = getCardPrice(count, area, list, priceArrA, kind);
}
}
return list;
}
@@ -3564,7 +3564,7 @@ public class PriceUtils {
if (area < 7.5) {
basePrice = 90;
} else {
basePrice = 70;
basePrice = 88;
}
return Math.max(Math.ceil(area * basePrice), 50);
}