This commit is contained in:
2025-04-08 16:08:05 +08:00
parent 6a3a71e03a
commit 4d3b80fcc2
2 changed files with 34 additions and 1 deletions
@@ -532,13 +532,30 @@ public class ProductService {
}
}
}
double huaxianPrice = 0.0;
if (("0".equals(dto.getKindValue()) || "1".equals(dto.getKindValue())) && "划线".equals(dto.getCraftQieType())) {
//宽度大于50 长度185-500
if ("0".equals(dto.getKindValue())) {
if (!((width >= 5 && length >= 18.5 && length <= 500) || (length >= 5 && width >= 18.5 && width <= 500))) {
huaxianPrice = Math.max(0.13 * count, 50);
}
} else {
huaxianPrice = Math.max(0.26 * count, 50);
}
for (Product product : stickersList) {
product.setPrice(Math.ceil(product.getPrice() + huaxianPrice));
}
}
if ("0".equals(dto.getKindValue()) && !"专版打印".contentEquals(dto.getStickerKind())) {
if (number > 1) {
for (Product product : stickersList) {
product.setPrice(product.getPrice() * number);
}
}
}
return priceList;
case "1":
dto.setWidth(width);