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 - + - +