|
|
@@ -2322,7 +2322,7 @@ public class PriceUtils {
|
|
|
// 根据款数重新算价格
|
|
|
for (Product product : list) {
|
|
|
product.setWeight(df.format(length * width * product.getCount() / 10000 * 0.3 * number));
|
|
|
- product.setPrice(Math.floor(product.getPrice() * number));
|
|
|
+ product.setPrice(Math.ceil(product.getPrice() * number));
|
|
|
}
|
|
|
} else if ("双面印刷".equals(craftShua)) {
|
|
|
// 数量
|
|
|
@@ -2341,7 +2341,7 @@ public class PriceUtils {
|
|
|
}
|
|
|
// 根据款数重新算价格
|
|
|
for (Product product : list) {
|
|
|
- product.setPrice(Math.floor(product.getPrice() * number));
|
|
|
+ product.setPrice(Math.ceil(product.getPrice() * number));
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
@@ -2398,7 +2398,7 @@ public class PriceUtils {
|
|
|
price = fixPrice + (num - 5 > 0 ? num - 5 : 0) * zhang + designFee * number + 0.1 * count * number;
|
|
|
Product dto = new Product();
|
|
|
dto.setCount(count);
|
|
|
- dto.setPrice(price);
|
|
|
+ dto.setPrice(Math.ceil(price));
|
|
|
list.add(dto);
|
|
|
} else {
|
|
|
// 数量
|
|
|
@@ -2418,7 +2418,7 @@ public class PriceUtils {
|
|
|
// 根据款数重新算价格
|
|
|
for (Product product : list) {
|
|
|
product.setWeight(df.format(weight));
|
|
|
- product.setPrice(Math.floor(product.getPrice() * number));
|
|
|
+ product.setPrice(Math.ceil(product.getPrice() * number));
|
|
|
}
|
|
|
}
|
|
|
}
|