This commit is contained in:
2025-05-21 17:29:11 +08:00
parent bb97693578
commit dfc3947e9b
4 changed files with 90 additions and 78 deletions
+10 -8
View File
@@ -1997,7 +1997,9 @@ public class PriceUtils {
price = num * 25;
}
price += 10 * craft.size() * num;
if (dto.getN_mq_num() > 0) {
price += 10 * dto.getN_mq_num();
}
if (number > 1) {
price *= 1.3;
}
@@ -3251,14 +3253,14 @@ public class PriceUtils {
// 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]) {
dj = prices[i];
break;
}
dj = last_price;
for (int i = 0; i < areas.length; i++) {
if (area <= areas[i]) {
dj = prices[i];
break;
}
price = Math.max(area * dj, min_price);
}
price = Math.max(area * dj, min_price);
// }
if (number > 1 && width * length >= 40 * 50) {