|
|
@@ -6,6 +6,7 @@
|
|
|
<result property="id" column="id" jdbcType="INTEGER"/>
|
|
|
<result property="uid" column="uid" jdbcType="VARCHAR"/>
|
|
|
<result property="aid" column="aid" jdbcType="VARCHAR"/>
|
|
|
+ <result property="peid" column="peid" jdbcType="VARCHAR"/>
|
|
|
<result property="counts" column="counts" jdbcType="INTEGER"/>
|
|
|
<result property="earlyCommunication" column="early_communication" jdbcType="VARCHAR"/>
|
|
|
<result property="customerDemand" column="customer_demand" jdbcType="VARCHAR"/>
|
|
|
@@ -17,7 +18,7 @@
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="UserArchivesInterviewAllSql">
|
|
|
- id, uid, aid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan
|
|
|
+ id, uid, aid, peid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -30,35 +31,37 @@
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_archives_interview(uid, aid, counts, early_communication, customer_demand, interview_ideas,
|
|
|
- interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
- values (#{uid}, #{aid}, #{counts}, #{earlyCommunication}, #{customerDemand}, #{interviewIdeas},
|
|
|
+ insert into user_archives_interview(uid, aid, peid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback,
|
|
|
+ follow_up_plan)
|
|
|
+ values (#{uid}, #{aid}, #{peid}, #{counts}, #{earlyCommunication}, #{customerDemand}, #{interviewIdeas},
|
|
|
#{interviewPurpose}, #{interviewRecommend}, #{interviewFeedback}, #{followUpPlan})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into user_archives_interview(uid, aid, counts, early_communication, customer_demand, interview_ideas,
|
|
|
- interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
+ insert into user_archives_interview(uid, aid, peid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.counts}, #{entity.earlyCommunication}, #{entity.customerDemand},
|
|
|
- #{entity.interviewIdeas}, #{entity.interviewPurpose}, #{entity.interviewRecommend},
|
|
|
- #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.peid}, #{entity.counts}, #{entity.earlyCommunication},
|
|
|
+ #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
|
|
|
+ #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_archives_interview(uid, aid, counts, early_communication, customer_demand, interview_ideas,
|
|
|
- interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
+ insert into user_archives_interview(uid, aid, peid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.counts}, #{entity.earlyCommunication}, #{entity.customerDemand},
|
|
|
- #{entity.interviewIdeas}, #{entity.interviewPurpose}, #{entity.interviewRecommend},
|
|
|
- #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.peid}, #{entity.counts}, #{entity.earlyCommunication},
|
|
|
+ #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
|
|
|
+ #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
uid = values(uid),
|
|
|
aid = values(aid),
|
|
|
+ peid = values(peid),
|
|
|
counts = values(counts),
|
|
|
early_communication = values(early_communication),
|
|
|
customer_demand = values(customer_demand),
|
|
|
@@ -79,6 +82,9 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
aid = #{aid},
|
|
|
</if>
|
|
|
+ <if test="peid != null and peid != ''">
|
|
|
+ peid = #{peid},
|
|
|
+ </if>
|
|
|
<if test="counts != null">
|
|
|
counts = #{counts},
|
|
|
</if>
|
|
|
@@ -123,6 +129,9 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</if>
|
|
|
+ <if test="peid != null and peid != ''">
|
|
|
+ and peid = #{peid}
|
|
|
+ </if>
|
|
|
<if test="counts != null">
|
|
|
and counts = #{counts}
|
|
|
</if>
|
|
|
@@ -148,7 +157,6 @@
|
|
|
and follow_up_plan = #{followUpPlan}
|
|
|
</if>
|
|
|
</where>
|
|
|
- order by counts
|
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
|
</if>
|
|
|
@@ -168,6 +176,9 @@
|
|
|
<if test="aid != null and aid != ''">
|
|
|
and aid = #{aid}
|
|
|
</if>
|
|
|
+ <if test="peid != null and peid != ''">
|
|
|
+ and peid = #{peid}
|
|
|
+ </if>
|
|
|
<if test="counts != null">
|
|
|
and counts = #{counts}
|
|
|
</if>
|