select id, user_id, title, content, type, status, opertor_id, create_time, update_time, search_value, del_flag from t_app_mail insert into t_app_mail user_id, title, content, type, status, opertor_id, create_time, update_time, search_value, del_flag, #{userId}, #{title}, #{content}, #{type}, #{status}, #{opertorId}, #{createTime}, #{updateTime}, #{searchValue}, #{delFlag}, update t_app_mail user_id = #{userId}, title = #{title}, content = #{content}, type = #{type}, status = #{status}, opertor_id = #{opertorId}, create_time = #{createTime}, update_time = #{updateTime}, search_value = #{searchValue}, del_flag = #{delFlag}, where id = #{id} update t_app_mail set del_flag = '2' where id = #{id} update t_app_mail set del_flag = '2' where id in #{id}