edit
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user