소스 검색

有效面谈逻辑修改

anderx 9 달 전
부모
커밋
18256ffd78

+ 15 - 15
src/main/java/com/goafanti/common/mapper/UserFirstInterviewMapper.xml

@@ -6,12 +6,12 @@
         <result property="id" column="id" jdbcType="INTEGER"/>
         <result property="uid" column="uid" jdbcType="VARCHAR"/>
         <result property="aid" column="aid" jdbcType="VARCHAR"/>
-        <result property="prid" column="prid" jdbcType="VARCHAR"/>
+        <result property="prdid" column="prdid" jdbcType="VARCHAR"/>
         <result property="firstTime" column="first_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
     <sql id="UserFirstInterviewAllSql">
-        id, uid, aid, prid, first_time
+        id, uid, aid, prdid, first_time
     </sql>
 
     <!--查询单个-->
@@ -24,28 +24,28 @@
 
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
-        insert into user_first_interview(uid, aid, prid, first_time)
-        values (#{uid}, #{aid}, #{prid}, #{firstTime})
+        insert into user_first_interview(uid, aid, prdid, first_time)
+        values (#{uid}, #{aid}, #{prdid}, #{firstTime})
     </insert>
 
     <insert id="insertBatch">
-        insert into user_first_interview(uid, aid, prid, first_time)
+        insert into user_first_interview(uid, aid, prdid, first_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
+            (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.firstTime})
         </foreach>
     </insert>
 
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into user_first_interview(uid, aid, prid, first_time)
+        insert into user_first_interview(uid, aid, prdid, first_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
+            (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.firstTime})
         </foreach>
         on duplicate key update
         uid = values(uid),
         aid = values(aid),
-        prid = values(prid),
+        prdid = values(prdid),
         first_time = values(first_time)
     </insert>
 
@@ -59,8 +59,8 @@
             <if test="aid != null and aid != ''">
                 aid = #{aid},
             </if>
-            <if test="prid != null and prid != ''">
-                prid = #{prid},
+            <if test="prdid != null and prdid != ''">
+                prdid = #{prdid},
             </if>
             <if test="firstTime != null">
                 first_time = #{firstTime},
@@ -85,8 +85,8 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="prid != null and prid != ''">
-                and prid = #{prid}
+            <if test="prdid != null and prdid != ''">
+                and prdid = #{prdid}
             </if>
             <if test="firstTime != null">
                 and first_time = #{firstTime}
@@ -111,8 +111,8 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="prid != null and prid != ''">
-                and prid = #{prid}
+            <if test="prdid != null and prdid != ''">
+                and prdid = #{prdid}
             </if>
             <if test="firstTime != null">
                 and first_time = #{firstTime}

+ 7 - 7
src/main/java/com/goafanti/common/model/UserFirstInterview.java

@@ -8,10 +8,10 @@ import java.util.Date;
  * 客户首次面谈表(UserFirstInterview)实体类
  *
  * @author makejava
- * @since 2025-04-17 11:26:26
+ * @since 2025-04-17 11:54:16
  */
 public class UserFirstInterview implements Serializable {
-    private static final long serialVersionUID = 702321896237690411L;
+    private static final long serialVersionUID = -48910358705056269L;
 
     private Integer id;
     /**
@@ -25,7 +25,7 @@ public class UserFirstInterview implements Serializable {
     /**
      * 项目编号
      */
-    private String prid;
+    private String prdid;
     /**
      * 首次面谈时间
      */
@@ -56,12 +56,12 @@ public class UserFirstInterview implements Serializable {
         this.aid = aid;
     }
 
-    public String getPrid() {
-        return prid;
+    public String getPrdid() {
+        return prdid;
     }
 
-    public void setPrid(String prid) {
-        this.prid = prid;
+    public void setPrdid(String prdid) {
+        this.prdid = prdid;
     }
 
     public Date getFirstTime() {