Browse Source

更新企业档案与面谈接口修改

anderx 9 months ago
parent
commit
c58b024409

+ 1 - 1
src/main/java/com/goafanti/Interview/controller/UserInterviewProjectController.java

@@ -28,7 +28,7 @@ public class UserInterviewProjectController extends BaseController {
 
 
     /**
-     * 新增数据
+     * 新增客户面谈项目表
      *
      * @param userInterviewProject 实体
      * @return 新增结果

+ 23 - 9
src/main/java/com/goafanti/common/mapper/UserInterviewProjectMapper.xml

@@ -5,6 +5,7 @@
     <resultMap type="com.goafanti.common.model.UserInterviewProject" id="UserInterviewProjectMap">
         <result property="id" column="id" jdbcType="INTEGER"/>
         <result property="uid" column="uid" jdbcType="VARCHAR"/>
+        <result property="aid" column="aid" jdbcType="VARCHAR"/>
         <result property="pid" column="pid" jdbcType="VARCHAR"/>
         <result property="examineStatus" column="examine_status" jdbcType="INTEGER"/>
         <result property="examineStatusOther" column="examine_status_other" jdbcType="VARCHAR"/>
@@ -13,7 +14,7 @@
     </resultMap>
 
     <sql id="UserInterviewProjectAllSql">
-        id, uid, pid, examine_status, examine_status_other, buy_status, buy_status_other
+        id, uid, aid, pid, examine_status, examine_status_other, buy_status, buy_status_other
     </sql>
 
     <!--查询单个-->
@@ -26,28 +27,32 @@
 
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
-        insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
-        values (#{uid}, #{pid}, #{examineStatus}, #{examineStatusOther}, #{buyStatus}, #{buyStatusOther})
+        insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
+                                           buy_status_other)
+        values (#{uid}, #{aid}, #{pid}, #{examineStatus}, #{examineStatusOther}, #{buyStatus}, #{buyStatusOther})
     </insert>
 
     <insert id="insertBatch">
-        insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
+        insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
+        buy_status_other)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther}, #{entity.buyStatus},
-            #{entity.buyStatusOther})
+            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther},
+            #{entity.buyStatus}, #{entity.buyStatusOther})
         </foreach>
     </insert>
 
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into user_interview_project(uid, pid, examine_status, examine_status_other, buy_status, buy_status_other)
+        insert into user_interview_project(uid, aid, pid, examine_status, examine_status_other, buy_status,
+        buy_status_other)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther}, #{entity.buyStatus},
-            #{entity.buyStatusOther})
+            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.examineStatus}, #{entity.examineStatusOther},
+            #{entity.buyStatus}, #{entity.buyStatusOther})
         </foreach>
         on duplicate key update
         uid = values(uid),
+        aid = values(aid),
         pid = values(pid),
         examine_status = values(examine_status),
         examine_status_other = values(examine_status_other),
@@ -62,6 +67,9 @@
             <if test="uid != null and uid != ''">
                 uid = #{uid},
             </if>
+            <if test="aid != null and aid != ''">
+                aid = #{aid},
+            </if>
             <if test="pid != null and pid != ''">
                 pid = #{pid},
             </if>
@@ -94,6 +102,9 @@
             <if test="uid != null and uid != ''">
                 and uid = #{uid}
             </if>
+            <if test="aid != null and aid != ''">
+                and aid = #{aid}
+            </if>
             <if test="pid != null and pid != ''">
                 and pid = #{pid}
             </if>
@@ -126,6 +137,9 @@
             <if test="uid != null and uid != ''">
                 and uid = #{uid}
             </if>
+            <if test="aid != null and aid != ''">
+                and aid = #{aid}
+            </if>
             <if test="pid != null and pid != ''">
                 and pid = #{pid}
             </if>

+ 14 - 2
src/main/java/com/goafanti/common/model/UserInterviewProject.java

@@ -7,10 +7,10 @@ import java.io.Serializable;
  * 客户面谈项目表(UserInterviewProject)实体类
  *
  * @author makejava
- * @since 2025-04-11 11:01:29
+ * @since 2025-04-16 10:26:21
  */
 public class UserInterviewProject implements Serializable {
-    private static final long serialVersionUID = 183066365262188482L;
+    private static final long serialVersionUID = 446779262856045999L;
 
     private Integer id;
     /**
@@ -20,6 +20,10 @@ public class UserInterviewProject implements Serializable {
     /**
      * 跟进人编号
      */
+    private String aid;
+    /**
+     * 项目编号
+     */
     private String pid;
     /**
      * 审核状态 0=否,1=初次审核,2=复审
@@ -55,6 +59,14 @@ public class UserInterviewProject implements Serializable {
         this.uid = uid;
     }
 
+    public String getAid() {
+        return aid;
+    }
+
+    public void setAid(String aid) {
+        this.aid = aid;
+    }
+
     public String getPid() {
         return pid;
     }