|
@@ -2624,7 +2624,7 @@ public class ProductService {
|
|
|
|
|
|
|
|
product.setPrice(Math.ceil(product.getPrice() + (number - 1) * 0.5));
|
|
product.setPrice(Math.ceil(product.getPrice() + (number - 1) * 0.5));
|
|
|
|
|
|
|
|
- product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000));
|
|
|
|
|
|
|
+ product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5));
|
|
|
if (product.getPrice() < apprise) {
|
|
if (product.getPrice() < apprise) {
|
|
|
product.setPrice(apprise);
|
|
product.setPrice(apprise);
|
|
|
}
|
|
}
|
|
@@ -2695,7 +2695,7 @@ public class ProductService {
|
|
|
// double base = number < 6 && number > 1 ? 5 : 0;
|
|
// double base = number < 6 && number > 1 ? 5 : 0;
|
|
|
double apprise = 0;
|
|
double apprise = 0;
|
|
|
for (Product product : priceList) {
|
|
for (Product product : priceList) {
|
|
|
- product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() / 10000));
|
|
|
|
|
|
|
+ product.setWeight(df.format((width + 0.6) * (length + 0.6) * product.getCount() * number / 10000 * 0.5));
|
|
|
if (apprise > product.getPrice()) {
|
|
if (apprise > product.getPrice()) {
|
|
|
product.setPrice(apprise);
|
|
product.setPrice(apprise);
|
|
|
}
|
|
}
|