|
|
@@ -2675,7 +2675,6 @@ public class ProductService {
|
|
|
num = Math.max(Math.floor(paperLength / length) * Math.floor(paperWidth / width), Math.floor(paperLength / width) * Math.floor(paperWidth / length));
|
|
|
|
|
|
}
|
|
|
-
|
|
|
double baseCount = Math.max(Math.ceil(dto.getCount() * dto.getNumber() / num), 1);
|
|
|
double countNum = Math.max(Math.ceil(dto.getNumber() / num), 1);
|
|
|
int coNumber = dto.getCo_number() == null ? 1 : dto.getCo_number();
|
|
|
@@ -2683,7 +2682,7 @@ public class ProductService {
|
|
|
coNumber = 1;
|
|
|
}
|
|
|
|
|
|
- double price = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * dto.getCount() * number);
|
|
|
+ double price = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * dto.getCount() * number, number);
|
|
|
|
|
|
Product pro = new Product();
|
|
|
pro.setCount(dto.getCount());
|
|
|
@@ -2698,7 +2697,7 @@ public class ProductService {
|
|
|
}
|
|
|
baseCount = Math.max(Math.ceil(quantitySteps[i] * dto.getNumber() / num), 1);
|
|
|
countNum = Math.max(Math.ceil(dto.getNumber() / num), 1);
|
|
|
- double currentPrice = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * quantitySteps[i] * number);
|
|
|
+ double currentPrice = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum, width * length * quantitySteps[i] * number, number);
|
|
|
|
|
|
pro = new Product();
|
|
|
|