修改条幅价格

This commit is contained in:
2025-08-11 09:32:52 +08:00
parent 6625505207
commit 5261b455e8
@@ -3110,8 +3110,12 @@ public class ProductService {
product.setWeight(df.format(0.065 * length * width * product.getCount() / 10000 * number));
double other_price = 0;
if (width * length <= 50 * 50) {
other_price = (count) * 5 * number + number * 5;
product.setPrice(Math.ceil(45 + other_price));
if (number > 1) {
other_price = (count) * 5 * (number - 1) + (number - 1) * 5;
} else {
other_price = (count - 1) * 5;
}
product.setPrice(Math.ceil(40 + other_price));
}
}