Browse Source

客户查询修改成全部查询

anderx 8 months ago
parent
commit
245ec5f607

+ 18 - 7
src/main/java/com/goafanti/common/mapper/UserInterviewProjectMapper.xml

@@ -7,6 +7,7 @@
         <result property="uid" column="uid" jdbcType="VARCHAR"/>
         <result property="aid" column="aid" jdbcType="VARCHAR"/>
         <result property="pid" column="pid" jdbcType="VARCHAR"/>
+        <result property="prdid" column="prdid" jdbcType="INTEGER"/>
         <result property="type" column="type" jdbcType="INTEGER"/>
         <result property="examineStatus" column="examine_status" jdbcType="INTEGER"/>
         <result property="examineStatusOther" column="examine_status_other" jdbcType="VARCHAR"/>
@@ -15,7 +16,7 @@
     </resultMap>
 
     <sql id="UserInterviewProjectAllSql">
-        id, uid, aid, pid, type, examine_status, examine_status_other, buy_status, buy_status_other
+        id, uid, aid, pid, prdid, type, examine_status, examine_status_other, buy_status, buy_status_other
     </sql>
 
     <!--查询单个-->
@@ -28,34 +29,35 @@
 
     <!--新增所有列-->
     <insert id="insert" keyProperty="id" useGeneratedKeys="true">
-        insert into user_interview_project(uid, aid, pid, type, examine_status, examine_status_other, buy_status,
+        insert into user_interview_project(uid, aid, pid, prdid, type, examine_status, examine_status_other, buy_status,
                                            buy_status_other)
-        values (#{uid}, #{aid}, #{pid}, #{type}, #{examineStatus}, #{examineStatusOther}, #{buyStatus},
+        values (#{uid}, #{aid}, #{pid}, #{prdid}, #{type}, #{examineStatus}, #{examineStatusOther}, #{buyStatus},
                 #{buyStatusOther})
     </insert>
 
     <insert id="insertBatch">
-        insert into user_interview_project(uid, aid, pid, type, examine_status, examine_status_other, buy_status,
+        insert into user_interview_project(uid, aid, pid, prdid, type, examine_status, examine_status_other, buy_status,
         buy_status_other)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.type}, #{entity.examineStatus},
+            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.prdid}, #{entity.type}, #{entity.examineStatus},
             #{entity.examineStatusOther}, #{entity.buyStatus}, #{entity.buyStatusOther})
         </foreach>
     </insert>
 
     <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
-        insert into user_interview_project(uid, aid, pid, type, examine_status, examine_status_other, buy_status,
+        insert into user_interview_project(uid, aid, pid, prdid, type, examine_status, examine_status_other, buy_status,
         buy_status_other)
         values
         <foreach collection="entities" item="entity" separator=",">
-            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.type}, #{entity.examineStatus},
+            (#{entity.uid}, #{entity.aid}, #{entity.pid}, #{entity.prdid}, #{entity.type}, #{entity.examineStatus},
             #{entity.examineStatusOther}, #{entity.buyStatus}, #{entity.buyStatusOther})
         </foreach>
         on duplicate key update
         uid = values(uid),
         aid = values(aid),
         pid = values(pid),
+        prdid = values(prdid),
         type = values(type),
         examine_status = values(examine_status),
         examine_status_other = values(examine_status_other),
@@ -76,6 +78,9 @@
             <if test="pid != null and pid != ''">
                 pid = #{pid},
             </if>
+            <if test="prdid != null">
+                prdid = #{prdid},
+            </if>
             <if test="type != null">
                 type = #{type},
             </if>
@@ -127,6 +132,9 @@
             <if test="pid != null and pid != ''">
                 and pid = #{pid}
             </if>
+            <if test="prdid != null">
+                and prdid = #{prdid}
+            </if>
             <if test="type != null">
                 and type = #{type}
             </if>
@@ -165,6 +173,9 @@
             <if test="pid != null and pid != ''">
                 and pid = #{pid}
             </if>
+            <if test="prdid != null">
+                and prdid = #{prdid}
+            </if>
             <if test="type != null">
                 and type = #{type}
             </if>

+ 15 - 3
src/main/java/com/goafanti/common/model/UserInterviewProject.java

@@ -7,10 +7,10 @@ import java.io.Serializable;
  * 客户面谈项目表(UserInterviewProject)实体类
  *
  * @author makejava
- * @since 2025-04-16 16:28:59
+ * @since 2025-04-22 16:52:45
  */
 public class UserInterviewProject implements Serializable {
-    private static final long serialVersionUID = 877764991133560176L;
+    private static final long serialVersionUID = -39209773983788594L;
 
     private Integer id;
     /**
@@ -26,7 +26,11 @@ public class UserInterviewProject implements Serializable {
      */
     private String pid;
     /**
-     * 0=本次,1=上次
+     * 公出详情编号
+     */
+    private Integer prdid;
+    /**
+     * 0=本次,1=非本次
      */
     private Integer type;
     /**
@@ -79,6 +83,14 @@ public class UserInterviewProject implements Serializable {
         this.pid = pid;
     }
 
+    public Integer getPrdid() {
+        return prdid;
+    }
+
+    public void setPrdid(Integer prdid) {
+        this.prdid = prdid;
+    }
+
     public Integer getType() {
         return type;
     }