From 5c97945db60fec4d824a8d4e5adb92027e24599e Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:48:11 +0800 Subject: [PATCH 1/2] =?UTF-8?q?2024.8.20=20=E8=AF=A2=E4=BB=B7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=AC=AC=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modules/project/entity/Project.java | 7 +- .../impl/QuotationInformationServiceImpl.java | 104 +++++++++--------- .../quote/QuotationInformationMapper.xml | 6 +- 3 files changed, 60 insertions(+), 57 deletions(-) diff --git a/src/main/java/com/xujie/sys/modules/project/entity/Project.java b/src/main/java/com/xujie/sys/modules/project/entity/Project.java index 38858a3f..0eacf456 100644 --- a/src/main/java/com/xujie/sys/modules/project/entity/Project.java +++ b/src/main/java/com/xujie/sys/modules/project/entity/Project.java @@ -1,5 +1,6 @@ package com.xujie.sys.modules.project.entity; +import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; @@ -13,8 +14,8 @@ import java.util.Date; @Data public class Project { - @TableId - private Integer id; + @TableId(value = "id",type = IdType.AUTO) + private Integer projectId; private String projectNo; @@ -96,5 +97,7 @@ public class Project { private String buDesc; @TableField(exist = false) private Integer buId; + @TableField(exist = false) + private String finalCustomerName; } diff --git a/src/main/java/com/xujie/sys/modules/quote/service/impl/QuotationInformationServiceImpl.java b/src/main/java/com/xujie/sys/modules/quote/service/impl/QuotationInformationServiceImpl.java index c0c2a890..fa8b3037 100644 --- a/src/main/java/com/xujie/sys/modules/quote/service/impl/QuotationInformationServiceImpl.java +++ b/src/main/java/com/xujie/sys/modules/quote/service/impl/QuotationInformationServiceImpl.java @@ -84,8 +84,8 @@ public class QuotationInformationServiceImpl extends ServiceImpl updateInformationWrapper = new UpdateWrapper<>(); updateInformationWrapper.eq("site", data.getSite()); updateInformationWrapper.eq("quotation_no", data.getQuotationNo()); @@ -164,9 +164,9 @@ public class QuotationInformationServiceImpl extends ServiceImpl **/ @@ -206,9 +206,9 @@ public class QuotationInformationServiceImpl extends ServiceImpl **/ @@ -222,9 +222,9 @@ public class QuotationInformationServiceImpl extends ServiceImpl !a.getQuotationResultStatus().equals(data.getCurrentStatus())); - // 判断选中的报价单的报价进度是否一致(如果全部相等:count应该等于1) + // 判断选中的询价单的询价进度是否一致(如果全部相等:count应该等于1) long count = data.getInformationList().stream().map(QuotationInformationEntity::getQuotationResultStatus).distinct().count(); if (b || count != 1) { return 2; @@ -434,19 +434,19 @@ public class QuotationInformationServiceImpl extends ServiceImpl - + - + From 5d858a5738c238cbc046d6f58f83d06e647296c5 Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:49:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?2024.8.20=20=E8=AF=A2=E4=BB=B7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E7=AC=AC=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/project/ProjectMapper.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/project/ProjectMapper.xml b/src/main/resources/mapper/project/ProjectMapper.xml index 7cba70e4..bdda6da1 100644 --- a/src/main/resources/mapper/project/ProjectMapper.xml +++ b/src/main/resources/mapper/project/ProjectMapper.xml @@ -3,7 +3,8 @@