select history_id, user_id, dept_id, titles, certificates, roleIds, postIds, pm_level, engineer_level, post_level, salary_level, operator_level, update_time, update_reason, political_affiliation, graduate_school, major, degree, contract_sign, contract_expire from cmc_user_history insert into cmc_user_history user_id, dept_id, titles, certificates, roleIds, postIds, pm_level, engineer_level, post_level, salary_level, operator_level, update_time, update_reason, political_affiliation, graduate_school, major, degree, contract_sign, contract_expire, #{userId}, #{deptId}, #{titles}, #{certificates}, #{roleIds}, #{postIds}, #{pmLevel}, #{engineerLevel}, #{postLevel}, #{salaryLevel}, #{operatorLevel}, #{updateTime}, #{updateReason}, #{politicalAffiliation}, #{graduateSchool}, #{major}, #{degree}, #{contractSign}, #{contractExpire}, update cmc_user_history user_id = #{userId}, dept_id = #{deptId}, titles = #{titles}, certificates = #{certificates}, roleIds = #{roleIds}, postIds = #{postIds}, pm_level = #{pmLevel}, engineer_level = #{engineerLevel}, post_level = #{postLevel}, salary_level = #{salaryLevel}, #{operatorLevel}, update_time = #{updateTime}, update_reason = #{updateReason}, #{politicalAffiliation}, #{graduateSchool}, #{major}, #{degree}, #{contractSign}, #{contractExpire}, where history_id = #{historyId} delete from cmc_user_history where user_id = #{userId} delete from cmc_user_history where user_id in #{userId}