This commit is contained in:
2025-04-08 17:17:49 +08:00
parent 4d3b80fcc2
commit 8250ce13d1
7 changed files with 432 additions and 7 deletions
+4 -1
View File
@@ -40,6 +40,9 @@ public class ZsPrice {
double price = 60;
double l = 438.0;
double w = 304.0;
if ("10".equals(dto.getKindValue())) {
price = 90;
}
if ((length < 8.55 && width < 5.4) || (width < 8.55 && length < 5.4)) {
length = 8.55;
width = 5.4;
@@ -53,7 +56,7 @@ public class ZsPrice {
// 需要多少张大纸 = 数量 * 款数 /每张做多少个 ===总数量/每张多少个
int num = (int) Math.ceil(count * number / max);
if ("10".equals(dto.getKindValue())) {
price += (num - 1) * 25;
price += (num - 1) * 30;
} else {
price += (num - 1) * 15;
}