id, uid, aid, prdid, counts, early_communication, customer_demand, interview_ideas, interview_purpose, interview_recommend, interview_feedback, follow_up_plan, create_time
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 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
(#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication},
#{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
#{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan}, #{entity.createTime})
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
(#{entity.uid}, #{entity.aid}, #{entity.prdid}, #{entity.counts}, #{entity.earlyCommunication},
#{entity.customerDemand}, #{entity.interviewIdeas}, #{entity.interviewPurpose},
#{entity.interviewRecommend}, #{entity.interviewFeedback}, #{entity.followUpPlan}, #{entity.createTime})
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),
create_time = values(create_time)
update user_archives_interview
uid = #{uid},
aid = #{aid},
prdid = #{prdid},
counts = #{counts},
early_communication = #{earlyCommunication},
customer_demand = #{customerDemand},
interview_ideas = #{interviewIdeas},
interview_purpose = #{interviewPurpose},
interview_recommend = #{interviewRecommend},
interview_feedback = #{interviewFeedback},
follow_up_plan = #{followUpPlan},
create_time = #{createTime},
where id = #{id}
delete
from user_archives_interview
where id = #{id}