From d9f77c25bc9c35f93a0c4ece351a2adbd89014c6 Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Fri, 11 Jul 2025 10:16:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=A1=E5=B0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingtao/net/service/ProductService.java | 9 + .../webapp/views/product/colorEnvelope.jsp | 954 +++++++++--------- 2 files changed, 511 insertions(+), 452 deletions(-) diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index d66d1b1..5f7b954 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -1735,9 +1735,18 @@ public class ProductService { if (priceList.size() >= 4) { priceList = priceList.subList(0, 4); } + List carft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>(); // 产品价格倍数 for (Product product : priceList) { product.setPrice(Math.ceil(product.getPrice() * product.getPriceMultiple())); + if (carft_list.contains("烫金")) { + if (carft_list.contains("2处")) { + product.setPrice(product.getPrice() + 100); + } + if (carft_list.contains("3处")) { + product.setPrice(product.getPrice() + 200); + } + } } // 根据款数重新算重量(重量在数据库中) /* diff --git a/src/main/webapp/views/product/colorEnvelope.jsp b/src/main/webapp/views/product/colorEnvelope.jsp index eeccb44..bcac527 100644 --- a/src/main/webapp/views/product/colorEnvelope.jsp +++ b/src/main/webapp/views/product/colorEnvelope.jsp @@ -1,466 +1,516 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> - <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + pageEncoding="UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - -Insert title here - <%@include file="/views/common.jsp"%> + + Insert title here + <%@include file="/views/common.jsp" %> -
-
-

彩色信封

-
-
- -

- 材质 -

- - -
-
- -
-
-

- 规格 -

-
- -
- - - -

- 数量(个) -

- -
- -
-

- 款数 -

-
- -
-

- 客户旺旺 -

-
- -
-
-
- - -
-

计算结果-

-
- - <%@include file="../acountExpressFee.jsp"%> -
- -
-
-
-
-
-
- -
-
+
+
+

彩色信封

+
+
+ +

+ 材质 +

+ + +
+
+ +
+
+

+ 规格 +

+
+ +
+ + + +

+ 数量(个) +

+ +
+ +
+

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+

工艺

+
+ +
+
+
+
+
+
+
+ + +
+

计算结果- + +

+
+ + <%@include file="../acountExpressFee.jsp" %> +
+ +
+
+
+
+
+
+ +
+
-<%@include file="/views/copyResult.jsp"%> +<%@include file="/views/copyResult.jsp" %> \ No newline at end of file