select id, email_type, user_id, create_by, create_time, from_email, from_email_pwd, to_email, subject, content, send_flag, send_time, send_type, plan_time, copy_to, attachfiles from cms_email insert into cms_email id, email_type, user_id, create_by, create_time, from_email, from_email_pwd, to_email, subject, content, send_flag, send_time, send_type, plan_time, copy_to, attachfiles, #{id}, #{emailType}, #{userId}, #{createBy}, #{createTime}, #{fromEmail}, #{fromEmailPwd}, #{toEmail}, #{subject}, #{content}, #{sendFlag}, #{sendTime}, #{sendType}, #{planTime}, #{copyTo}, #{attachfiles}, update cms_email email_type = #{emailType}, user_id = #{userId}, create_by = #{createBy}, create_time = #{createTime}, from_email = #{fromEmail}, from_email_pwd = #{fromEmailPwd}, to_email = #{toEmail}, subject = #{subject}, content = #{content}, send_flag = #{sendFlag}, send_time = #{sendTime}, send_type = #{sendType}, plan_time = #{planTime}, copy_to = #{copyTo}, attachfiles = #{attachfiles}, where id = #{id} delete from cms_email where id = #{id} delete from cms_email where id in #{id}