This commit is contained in:
2025-04-09 10:34:35 +08:00
parent 8250ce13d1
commit 11c1d3edfa
2 changed files with 17 additions and 17 deletions
@@ -1008,7 +1008,7 @@ public class PriceUtils {
int count_index = Arrays.binarySearch(count_list, count_item);
price = 0;
if (count_index >= 0) {
price = new PriceUtils().TablePrice(area * 1000, prices[count_index], areas);
price = new PriceUtils().TablePrice(area * 10000, prices[count_index], areas);
}
Product product = new Product();
product.setCount(count_item);
@@ -3248,9 +3248,9 @@ public class PriceUtils {
}
if (width * length < 40 * 50) {
price = new PriceUtils().getTestPrice(length, width, count, number, areas, prices, min_price, last_price);
} else {
// if (width * length < 40 * 50) {
// price = new PriceUtils().getTestPrice(length, width, count, number, areas, prices, min_price, last_price);
// } else {
dj = last_price;
for (int i = 0; i < areas.length; i++) {
if (area <= areas[i]) {
@@ -3259,7 +3259,7 @@ public class PriceUtils {
}
}
price = Math.max(area * dj, min_price);
}
// }
if (number > 1 && width * length >= 40 * 50) {
pro.setPrice(Math.ceil(price * number));