This commit is contained in:
2025-04-03 16:44:24 +08:00
parent 8a85fa1d2a
commit 6a3a71e03a
3 changed files with 7 additions and 3 deletions
@@ -119,7 +119,11 @@ public class PosterPrice {
pro.setWeight(weight);
pro.setCount(count);
// 价格 = 面积 * 单价 + (款数-1) * 40
pro.setPrice(Math.ceil(price * number));
if (number > 1 && area >= 40 * 50 / 10000.0) {
pro.setPrice(Math.ceil(price * number));
} else {
pro.setPrice(Math.ceil(price));
}
list.add(pro);
return list;
}