|
|
@@ -2409,7 +2409,7 @@ public class ProductService {
|
|
|
}
|
|
|
|
|
|
double baseCount = Math.max(Math.ceil(dto.getCount() * dto.getNumber() / num), 1);
|
|
|
- double countNum = Math.max(Math.ceil(dto.getCount() / num), 1);
|
|
|
+ double countNum = Math.max(Math.ceil(dto.getNumber() / num), 1);
|
|
|
int coNumber = dto.getCo_number();
|
|
|
if (coNumber <= 0) {
|
|
|
coNumber = 1;
|
|
|
@@ -2429,7 +2429,7 @@ public class ProductService {
|
|
|
break;
|
|
|
}
|
|
|
baseCount = Math.max(Math.ceil(quantitySteps[i] * dto.getNumber() / num), 1);
|
|
|
- countNum = Math.max(Math.ceil(dto.getCount() / num), 1);
|
|
|
+ countNum = Math.max(Math.ceil(dto.getNumber() / num), 1);
|
|
|
double currentPrice = new PriceUtils().CalculatePrice(craft_list, baseCount, coNumber, countNum);
|
|
|
|
|
|
pro = new Product();
|