此提交包含在:
2025-05-12 10:16:18 +08:00
父節點 66c8b1be0d
當前提交 558fd63b2f
+3 -3
查看文件
@@ -535,14 +535,14 @@ public class ProductService {
double huaxianPrice = 0.0; double huaxianPrice = 0.0;
if (("0".equals(dto.getKindValue()) || "1".equals(dto.getKindValue())) && "划线".equals(dto.getCraftQieType())) { if (("0".equals(dto.getKindValue()) || "1".equals(dto.getKindValue())) && "划线".equals(dto.getCraftQieType())) {
//宽度大于50 长度185-500 //宽度大于50 长度185-500
for (Product product : stickersList) {
if ("0".equals(dto.getKindValue())) { if ("0".equals(dto.getKindValue())) {
if (!((width >= 5 && length >= 18.5 && length <= 500) || (length >= 5 && width >= 18.5 && width <= 500))) { if (!((width >= 5 && length >= 18.5 && length <= 500) || (length >= 5 && width >= 18.5 && width <= 500))) {
huaxianPrice = Math.max(0.13 * count, 50); huaxianPrice = Math.max(0.13 * product.getCount(), 50);
} }
} else { } else {
huaxianPrice = Math.max(0.26 * count, 50); huaxianPrice = Math.max(0.26 * product.getCount(), 50);
} }
for (Product product : stickersList) {
product.setPrice(Math.ceil(product.getPrice() + huaxianPrice)); product.setPrice(Math.ceil(product.getPrice() + huaxianPrice));
} }
} }