From f74e72958fa46a632db5c8c82e368ed9e22635c2 Mon Sep 17 00:00:00 2001 From: zhuyiyi <649091362@qq.com> Date: Tue, 18 Nov 2025 14:04:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8F=AD=E6=97=97=E5=B7=A5?= =?UTF-8?q?=E8=89=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lingtao/net/service/ProductService.java | 13 +- src/main/webapp/views/product/banqi.jsp | 552 +++++++++--------- 2 files changed, 303 insertions(+), 262 deletions(-) diff --git a/src/main/java/lingtao/net/service/ProductService.java b/src/main/java/lingtao/net/service/ProductService.java index 2f0addc..bc52c9c 100644 --- a/src/main/java/lingtao/net/service/ProductService.java +++ b/src/main/java/lingtao/net/service/ProductService.java @@ -1342,7 +1342,15 @@ public class ProductService { // 名片-特种纸名片 case "特种纸名片": double addPrice = 5; - List craft_list = dto.getCraft() != null ? Arrays.asList(dto.getCraft()) : new ArrayList<>(); + + List craft_list = dto.getCraft() != null ? new ArrayList<>(Arrays.asList(dto.getCraft())) : new ArrayList<>(); + if (craft_list.contains("压痕")) { + craft_list.remove("压痕"); + craft_list.add("异形模切"); + } + if (!craft_list.isEmpty()) { + dto.setCraft(craft_list.toArray(new String[craft_list.size()])); + } if (!"素芸".equals(kind) && (craft_list.contains("单面烫金") || craft_list.contains("双面烫金"))) { int[] counts = new int[]{200, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000}; Map prices = null; @@ -4472,6 +4480,9 @@ public class ProductService { if (craLists.contains("手绘")) { product.setPrice(150.00 * number); } + if (craLists.contains("伸缩旗杆")) { + product.setPrice(Math.ceil(product.getPrice() + dto.getPo_number() * 15)); + } product.setWeight(df.format(0.075 * length * width * product.getCount() / 10000 * number + product.getCount() * wei * number )); } diff --git a/src/main/webapp/views/product/banqi.jsp b/src/main/webapp/views/product/banqi.jsp index 7bae304..48b9c49 100644 --- a/src/main/webapp/views/product/banqi.jsp +++ b/src/main/webapp/views/product/banqi.jsp @@ -1,271 +1,301 @@ <%@ 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" %> -
-
-

班旗

-
-
- -

- 材质 -

-
- -
-

- 尺寸(CM/厘米) -

-
- -
- -

- 数量(个) -

-
- -
-

- 款数 -

-
- -
-

- 客户旺旺 -

-
- -
-

- 工艺 旗杆长度是2.5米 -

-
- - -
- - - -<%-- --%> -
-
-
- - -
-

计算结果-

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

班旗

+
+
+ +

+ 材质 +

+
+ +
+

+ 尺寸(CM/厘米) +

+
+ +
+ +

+ 数量(个) +

+
+ +
+

+ 款数 +

+
+ +
+

+ 客户旺旺 +

+
+ +
+

+ 工艺 旗杆长度是2.5米 +

+
+ + +
+ + + + + + + <%-- --%> +
+
+
+ + +
+

计算结果- + +

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