|
@@ -2156,12 +2156,12 @@ public class PriceUtils {
|
|
|
width = width * 10 + 2 * 1.5;
|
|
width = width * 10 + 2 * 1.5;
|
|
|
// 数量*款数就是张数
|
|
// 数量*款数就是张数
|
|
|
count = count * number;
|
|
count = count * number;
|
|
|
- if ((length > l || width > w) && (length > w || width > l)) {
|
|
|
|
|
|
|
+ if ((length - 3 > l || width - 3 > w) && (length - 3 > w || width - 3 > l)) {
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
// 一张大纸43*30 能做多少个此类尺寸的
|
|
// 一张大纸43*30 能做多少个此类尺寸的
|
|
|
- double max = Math.max(Math.floor(l / length) * Math.floor(w / width),
|
|
|
|
|
- Math.floor(l / width) * Math.floor(w / length));
|
|
|
|
|
|
|
+ double max = Math.max(Math.max(Math.floor(l / length) * Math.floor(w / width),
|
|
|
|
|
+ Math.floor(l / width) * Math.floor(w / length)), 1);
|
|
|
// 报的数量需要多少张大纸
|
|
// 报的数量需要多少张大纸
|
|
|
int num = (int) Math.ceil(count / max);
|
|
int num = (int) Math.ceil(count / max);
|
|
|
if (num <= 10) {
|
|
if (num <= 10) {
|