Цей коміт міститься в:
2025-08-11 09:32:52 +08:00
джерело 6625505207
коміт 5261b455e8
+6 -2
Переглянути файл
@@ -3110,8 +3110,12 @@ public class ProductService {
product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number)); product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number));
double other_price = 0; double other_price = 0;
if (width * length <= 50 * 50) { if (width * length <= 50 * 50) {
other_price = (count) * 5 * number + number * 5; if (number > 1) {
product.setPrice(Math.ceil(45 + other_price)); other_price = (count) * 5 * (number - 1) + (number - 1) * 5;
} else {
other_price = (count - 1) * 5;
}
product.setPrice(Math.ceil(40 + other_price));
} }
} }