INSERT INTO user (user_code, user_name, phone, password, email, id_card, gender, is_admin, is_enable, create_by, create_time, update_by, update_time, invalid) VALUES(#{userCode}, #{userName}, #{phone}, #{password}, #{email}, #{idCard}, #{gender}, #{isAdmin}, #{isEnable}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{invalid}) UPDATE user user_code = #{userCode}, user_name = #{userName}, phone = #{phone}, password = #{password}, email = #{email}, id_card = #{idCard}, gender = #{gender}, is_admin = #{isAdmin}, is_enable = #{isEnable}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, update_by = #{updateBy}, invalid = #{invalid} WHERE id = #{id}; delete from user where id = #{id}