From 58a1eecc62eaf748814ca4533e83b9e0362f4e8d Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Wed, 26 Nov 2025 10:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=92=E6=97=97=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=EF=BC=8C=E4=BF=AE=E6=94=B9=E8=85=B0=E5=B0=81=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingtao/net/service/ProductService.java | 8 +++- src/main/webapp/views/product/chaqi.jsp | 43 +++++++------------ 2 files changed, 23 insertions(+), 28 deletions(-) diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index dc1194f..a09f673 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -437,12 +437,13 @@ public class ProductService { } } - if ("覆哑膜".equals(dto.getCraftMo()) && !"1".equals(kind)) { + if ("覆哑膜".equals(dto.getCraftMo()) && !"1".equals(kind) && !("插旗".equals(dto.getStickerKind()) && "铜版纸不干胶".equals(kind))) { for (Product product : priceList) { product.setPrice(Math.ceil(product.getPrice() * 1.2)); } } + if (priceList.size() >= 3) { priceList = priceList.subList(0, 3); } @@ -506,6 +507,11 @@ public class ProductService { } } } + if ("覆哑膜".equals(dto.getCraftMo()) && !"1".equals(kind) && "铜版纸不干胶".equals(kind)) { + for (Product product : priceList) { + product.setPrice(Math.ceil(product.getPrice() * 1.3)); + } + } } if (!StringUtils.isEmpty(dto.getCraft())) { diff --git a/src/main/webapp/views/product/chaqi.jsp b/src/main/webapp/views/product/chaqi.jsp index 43cfbb4..5584660 100644 --- a/src/main/webapp/views/product/chaqi.jsp +++ b/src/main/webapp/views/product/chaqi.jsp @@ -421,6 +421,7 @@ <%@include file="/views/copyResult.jsp" %>