|
|
@@ -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
|