select history_id, user_id, titles, certificates, pm_level, engineer_level, post_level, salary_level, update_time, update_reason from cmc_user_history
insert into cmc_user_history
user_id,
titles,
certificates,
pm_level,
engineer_level,
post_level,
salary_level,
update_time,
update_reason,
#{userId},
#{titles},
#{certificates},
#{pmLevel},
#{engineerLevel},
#{postLevel},
#{salaryLevel},
#{updateTime},
#{updateReason},
update cmc_user_history
user_id = #{userId},
titles = #{titles},
certificates = #{certificates},
pm_level = #{pmLevel},
engineer_level = #{engineerLevel},
post_level = #{postLevel},
salary_level = #{salaryLevel},
update_time = #{updateTime},
update_reason = #{updateReason},
where history_id = #{historyId}
delete from cmc_user_history where user_id = #{userId}
delete from cmc_user_history where user_id in
#{userId}