Browse Source

签单客户列表处理
客户档案面谈数据新增公出状态字段

anderx 8 months ago
parent
commit
65b5845bac

+ 16 - 0
src/main/java/com/goafanti/Interview/bo/selectByUidAidBo.java

@@ -0,0 +1,16 @@
+package com.goafanti.Interview.bo;
+
+import com.goafanti.common.model.UserArchivesInterview;
+
+public class selectByUidAidBo extends UserArchivesInterview {
+
+    private Integer prStatus;
+
+    public Integer getPrStatus() {
+        return prStatus;
+    }
+
+    public void setPrStatus(Integer prStatus) {
+        this.prStatus = prStatus;
+    }
+}

+ 24 - 6
src/main/java/com/goafanti/common/mapper/UserArchivesInterviewMapper.xml

@@ -224,19 +224,37 @@
         where id = #{id}
     </delete>
 
-    <select id="selectByUidAid" resultMap="UserArchivesInterviewMap">
+    <resultMap type="com.goafanti.Interview.bo.selectByUidAidBo" id="selectByUidAidBoMap">
+        <result property="id" column="id" jdbcType="INTEGER"/>
+        <result property="uid" column="uid" jdbcType="VARCHAR"/>
+        <result property="aid" column="aid" jdbcType="VARCHAR"/>
+        <result property="prdid" column="prdid" jdbcType="INTEGER"/>
+        <result property="counts" column="counts" jdbcType="INTEGER"/>
+        <result property="earlyCommunication" column="early_communication" jdbcType="VARCHAR"/>
+        <result property="customerDemand" column="customer_demand" jdbcType="VARCHAR"/>
+        <result property="interviewIdeas" column="interview_ideas" jdbcType="VARCHAR"/>
+        <result property="interviewPurpose" column="interview_purpose" jdbcType="VARCHAR"/>
+        <result property="interviewRecommend" column="interview_recommend" jdbcType="VARCHAR"/>
+        <result property="interviewFeedback" column="interview_feedback" jdbcType="VARCHAR"/>
+        <result property="followUpPlan" column="follow_up_plan" jdbcType="VARCHAR"/>
+        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+        <result property="prStatus" column="prStatus" jdbcType="INTEGER"/>
+    </resultMap>
+
+    <select id="selectByUidAid" resultMap="selectByUidAidBoMap">
     select
-    <include refid="UserArchivesInterviewAllSql"/>
-    from user_archives_interview
+    a.* ,c.status prStatus
+    from user_archives_interview a left join public_release_details b on a.prdid=b.id
+    left join public_release c on b.prid=c.id
     <where>
     <if test="uid != null and uid != ''">
-        and uid = #{uid}
+        and a.uid = #{uid}
     </if>
     <if test="aid != null and aid != ''">
-        and aid = #{aid}
+        and a.aid = #{aid}
     </if>
     </where>
-    order by counts desc
+    order by a.counts desc
     </select>
     <select id="selectByIds" resultMap="UserArchivesInterviewMap">
         select

+ 2 - 1
src/main/java/com/goafanti/common/mapper/UserMapperExt.xml

@@ -537,7 +537,8 @@
 			dg1.name as province,
 			dg2.name as city,
 			dg3.name as area,
-			c.name as industry,
+			b.industry,
+			b.industry_name industryName,
 			a.level,
 			a.channel,
 			b.intended_project  intendedProject,