From 26646ad3018460556dc2f50a52f55b656f99337b Mon Sep 17 00:00:00 2001
From: chenhao <852066789@qq.com>
Date: Mon, 9 Jun 2025 09:47:33 +0800
Subject: [PATCH] =?UTF-8?q?feat(sip):=20=E9=A1=B9=E7=9B=AE=E4=BF=A1?=
 =?UTF-8?q?=E6=81=AF=E4=B8=AD=E5=A2=9E=E5=8A=A0=E5=AE=A2=E6=88=B7=E7=94=A8?=
 =?UTF-8?q?=E6=88=B7=E5=90=8D=E5=92=8C=E7=94=B5=E8=AF=9D=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

- 在 ProjectInfo 类中添加 customerUserName 和 customerPhone 字段
- 更新 ProjectInfoMapper.xml,增加客户用户名和电话的查询和插入逻辑
---
 .../src/main/java/com/ruoyi/sip/domain/ProjectInfo.java  | 2 ++
 .../src/main/resources/mapper/sip/ProjectInfoMapper.xml  | 9 ++++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProjectInfo.java b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProjectInfo.java
index 8b622239..1f54a7c3 100644
--- a/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProjectInfo.java
+++ b/ruoyi-sip/src/main/java/com/ruoyi/sip/domain/ProjectInfo.java
@@ -42,6 +42,8 @@ public class ProjectInfo extends BaseEntity
     /** 客户名称 */
     @Excel(name = "客户名称")
     private String customerName;
+    private String customerUserName;
+    private String customerPhone;
 
     /** 行业 */
     @Excel(name = "行业")
diff --git a/ruoyi-sip/src/main/resources/mapper/sip/ProjectInfoMapper.xml b/ruoyi-sip/src/main/resources/mapper/sip/ProjectInfoMapper.xml
index d57c4bde..25a17777 100644
--- a/ruoyi-sip/src/main/resources/mapper/sip/ProjectInfoMapper.xml
+++ b/ruoyi-sip/src/main/resources/mapper/sip/ProjectInfoMapper.xml
@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     <sql id="selectProjectInfoVo">
         select id, project_code, project_name,bg_property, customer_code, customer_name, industry_type, agent_code, project_stage, project_grasp_degree, hz_support_user, operate_institution
              , partner_code, partner_name, contact_way, estimated_amount, currency_type, estimated_order_time, estimated_deliver_time, competitor, country_product, server_configuration
-             , key_problem, project_desc, create_by, create_time, update_by, update_time from project_info t1
+             , key_problem, project_desc, create_by, create_time, update_by, update_time,customer_user_name,customer_phone from project_info t1
     </sql>
     <sql id="selectRelationProjectInfoVo">
         select t1.id,
@@ -68,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                t1.create_time,
                t1.update_by,
                t1.update_time,
+               t1.customer_user_name,t1.customer_phone,
                t2.agent_name,
                t3.user_name as hz_support_user_name
         from project_info t1
@@ -172,6 +173,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="projectName != null">project_name,</if>
             <if test="customerCode != null">customer_code,</if>
             <if test="customerName != null">customer_name,</if>
+            <if test="customerUserName != null">customer_user_name,</if>
+            <if test="customerPhone != null">customer_phone,</if>
             <if test="industryType != null">industry_type,</if>
             <if test="bgProperty != null">bg_property,</if>
             <if test="agentCode != null">agent_code,</if>
@@ -201,6 +204,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="projectName != null">#{projectName},</if>
             <if test="customerCode != null">#{customerCode},</if>
             <if test="customerName != null">#{customerName},</if>
+            <if test="customerUserName != null">#{customerUserName},</if>
+            <if test="customerPhone != null">#{customerPhone},</if>
             <if test="industryType != null">#{industryType},</if>
             <if test="bgProperty != null">#{bgProperty},</if>
             <if test="agentCode != null">#{agentCode},</if>
@@ -234,6 +239,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="projectName != null">project_name = #{projectName},</if>
             <if test="customerCode != null">customer_code = #{customerCode},</if>
             <if test="customerName != null">customer_name = #{customerName},</if>
+            <if test="customerUserName != null">customer_user_name=#{customerUserName},</if>
+            <if test="customerPhone != null">customer_phone=#{customerPhone},</if>
             <if test="bgProperty != null">bg_property=#{bgProperty},</if>
             <if test="industryType != null">industry_type = #{industryType},</if>
             <if test="agentCode != null">agent_code = #{agentCode},</if>