|
|
@@ -15,52 +15,63 @@
|
|
|
<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"/>
|
|
|
</resultMap>
|
|
|
-
|
|
|
+
|
|
|
<sql id="UserArchivesInterviewAllSql">
|
|
|
-id, uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan
|
|
|
+ id, uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
<select id="selectById" resultMap="UserArchivesInterviewMap">
|
|
|
select
|
|
|
- <include refid="UserArchivesInterviewAllSql"/>
|
|
|
+ <include refid="UserArchivesInterviewAllSql"/>
|
|
|
from user_archives_interview
|
|
|
where id = #{id}
|
|
|
</select>
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
- values (#{uid}, #{aid}, #{prdid}, #{counts}, #{earlyCommunication}, #{customerDemand}, #{interviewIdeas}, #{interviewPurpose}, #{interviewRecommend}, #{interviewFeedback}, #{followUpPlan})
|
|
|
+ insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback,
|
|
|
+ follow_up_plan, create_time)
|
|
|
+ values (#{uid}, #{aid}, #{prdid}, #{counts}, #{earlyCommunication}, #{customerDemand}, #{interviewIdeas},
|
|
|
+ #{interviewPurpose}, #{interviewRecommend}, #{interviewFeedback}, #{followUpPlan}, #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
- insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
+ insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication}, #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose}, #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication},
|
|
|
+ #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
|
|
|
+ #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
- insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan)
|
|
|
+ insert into user_archives_interview(uid, aid, prdid, counts, early_communication, customer_demand,
|
|
|
+ interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication}, #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose}, #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan})
|
|
|
+ (#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication},
|
|
|
+ #{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
|
|
|
+ #{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
-uid = values(uid),
|
|
|
-aid = values(aid),
|
|
|
-prdid = values(prdid),
|
|
|
-counts = values(counts),
|
|
|
-early_communication = values(early_communication),
|
|
|
-customer_demand = values(customer_demand),
|
|
|
-interview_ideas = values(interview_ideas),
|
|
|
-interview_purpose = values(interview_purpose),
|
|
|
-interview_recommend = values(interview_recommend),
|
|
|
-interview_feedback = values(interview_feedback),
|
|
|
-follow_up_plan = values(follow_up_plan)
|
|
|
+ uid = values(uid),
|
|
|
+ aid = values(aid),
|
|
|
+ prdid = values(prdid),
|
|
|
+ counts = values(counts),
|
|
|
+ early_communication = values(early_communication),
|
|
|
+ customer_demand = values(customer_demand),
|
|
|
+ interview_ideas = values(interview_ideas),
|
|
|
+ interview_purpose = values(interview_purpose),
|
|
|
+ interview_recommend = values(interview_recommend),
|
|
|
+ interview_feedback = values(interview_feedback),
|
|
|
+ follow_up_plan = values(follow_up_plan),
|
|
|
+ create_time = values(create_time)
|
|
|
</insert>
|
|
|
|
|
|
<!--通过主键修改数据-->
|
|
|
@@ -100,14 +111,17 @@ follow_up_plan = values(follow_up_plan)
|
|
|
<if test="followUpPlan != null and followUpPlan != ''">
|
|
|
follow_up_plan = #{followUpPlan},
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
-
|
|
|
+
|
|
|
<!--查询指定行数据-->
|
|
|
<select id="findUserArchivesInterviewList" resultMap="UserArchivesInterviewMap">
|
|
|
select
|
|
|
- <include refid="UserArchivesInterviewAllSql"/>
|
|
|
+ <include refid="UserArchivesInterviewAllSql"/>
|
|
|
|
|
|
from user_archives_interview
|
|
|
<where>
|
|
|
@@ -147,9 +161,12 @@ follow_up_plan = values(follow_up_plan)
|
|
|
<if test="followUpPlan != null and followUpPlan != ''">
|
|
|
and follow_up_plan = #{followUpPlan}
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<if test="page_sql != null">
|
|
|
- ${page_sql}
|
|
|
+ ${page_sql}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
@@ -194,12 +211,17 @@ follow_up_plan = values(follow_up_plan)
|
|
|
<if test="followUpPlan != null and followUpPlan != ''">
|
|
|
and follow_up_plan = #{followUpPlan}
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<!--通过主键删除-->
|
|
|
<delete id="deleteById">
|
|
|
- delete from user_archives_interview where id = #{id}
|
|
|
+ delete
|
|
|
+ from user_archives_interview
|
|
|
+ where id = #{id}
|
|
|
</delete>
|
|
|
|
|
|
<select id="selectByUidAid" resultMap="UserArchivesInterviewMap">
|