anderx пре 9 месеци
родитељ
комит
a157f9aba7

+ 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="pid" column="pid" jdbcType="VARCHAR"/>
+        <result property="prid" column="prid" jdbcType="VARCHAR"/>
         <result property="firstTime" column="first_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
     <sql id="UserFirstInterviewAllSql">
-        id, uid, aid, pid, first_time
+        id, uid, aid, prid, first_time
     </sql>
 
     <!--查询单个-->
@@ -24,28 +24,28 @@
 
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
-        insert into user_first_interview(uid, aid, pid, first_time)
-        values (#{uid}, #{aid}, #{pid}, #{firstTime})
+        insert into user_first_interview(uid, aid, prid, first_time)
+        values (#{uid}, #{aid}, #{prid}, #{firstTime})
     </insert>
 
     <insert id="insertBatch">
-        insert into user_first_interview(uid, aid, pid, first_time)
+        insert into user_first_interview(uid, aid, prid, first_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.firstTime})
+            (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
         </foreach>
     </insert>
 
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into user_first_interview(uid, aid, pid, first_time)
+        insert into user_first_interview(uid, aid, prid, first_time)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.firstTime})
+            (#{entity.uid}, #{entity.aid}, #{entity.prid}, #{entity.firstTime})
         </foreach>
         on duplicate key update
         uid = values(uid),
         aid = values(aid),
-        pid = values(pid),
+        prid = values(prid),
         first_time = values(first_time)
     </insert>
 
@@ -59,8 +59,8 @@
             <if test="aid != null and aid != ''">
                 aid = #{aid},
             </if>
-            <if test="pid != null and pid != ''">
-                pid = #{pid},
+            <if test="prid != null and prid != ''">
+                prid = #{prid},
             </if>
             <if test="firstTime != null">
                 first_time = #{firstTime},
@@ -85,8 +85,8 @@
             <if test="aid != null and aid != ''">
                 and aid = #{aid}
             </if>
-            <if test="pid != null and pid != ''">
-                and pid = #{pid}
+            <if test="prid != null and prid != ''">
+                and prid = #{prid}
             </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="pid != null and pid != ''">
-                and pid = #{pid}
+            <if test="prid != null and prid != ''">
+                and prid = #{prid}
             </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 10:58:15
+ * @since 2025-04-17 11:26:26
  */
 public class UserFirstInterview implements Serializable {
-    private static final long serialVersionUID = -64029579838669528L;
+    private static final long serialVersionUID = 702321896237690411L;
 
     private Integer id;
     /**
@@ -25,7 +25,7 @@ public class UserFirstInterview implements Serializable {
     /**
      * 项目编号
      */
-    private String pid;
+    private String prid;
     /**
      * 首次面谈时间
      */
@@ -56,12 +56,12 @@ public class UserFirstInterview implements Serializable {
         this.aid = aid;
     }
 
-    public String getPid() {
-        return pid;
+    public String getPrid() {
+        return prid;
     }
 
-    public void setPid(String pid) {
-        this.pid = pid;
+    public void setPrid(String prid) {
+        this.prid = prid;
     }
 
     public Date getFirstTime() {