INSERT INTO oa_mail_read_tag ( id, user_id, read_time ) VALUES ( #{id}, #{userId}, #{readTime} ) INSERT INTO oa_mail_send( mail_id, recipient_ids, recipient_names, copy_for_ids, copy_for_names, secret_ids, secret_names, title, mail_files, content_rich, content, creator, gmt_create, modifier, gmt_modified ) VALUES( #{mailId}, #{recipientIds}, #{recipientNames}, #{copyForIds}, #{copyForNames}, #{secretIds}, #{secretNames}, #{title}, #{mailFiles}, #{contentRich}, #{content}, #{creator}, #{gmtCreate}, #{modifier}, #{gmtModified} ) INSERT INTO oa_mail_inbox( mail_id_link, recipient_ids, recipient_names, copy_for_ids, copy_for_names, secret_ids, secret_names, title, mail_files, content_rich, content, creator, gmt_create ) VALUES ( #{mailIdLink}, #{recipientIds}, #{recipientNames}, #{copyForIds}, #{copyForNames}, #{secretIds}, #{secretNames}, #{title}, #{mailFiles}, #{contentRich}, #{content}, #{creator}, #{gmtCreate} ) INSERT INTO oa_mail_send_draft( mail_id, recipient_ids, recipient_names, copy_for_ids, copy_for_names, secret_ids, secret_names, title, mail_files, content_rich, content, creator, gmt_create ) VALUES( #{mailId}, #{recipientIds}, #{recipientNames}, #{copyForIds}, #{copyForNames}, #{secretIds}, #{secretNames}, #{title}, #{mailFiles}, #{contentRich}, #{content}, #{creator}, #{gmtCreate} ) UPDATE oa_mail_send_draft SET mail_id = #{mailId} ,recipient_ids = #{recipientIds} ,recipient_names = #{recipientNames} ,copy_for_ids = #{copyForIds} ,copy_for_names = #{copyForNames} ,secret_ids = #{secretIds} ,secret_names = #{secretNames} ,title = #{title} ,mail_files = #{mailFiles} ,content_rich = #{contentRich} ,content = #{content} ,gmt_create = #{gmtCreate} WHERE mail_id = #{mailId} DELETE FROM oa_mail_send_draft WHERE FIND_IN_SET(mail_id, #{mailIds}) DELETE FROM oa_mail_send WHERE FIND_IN_SET(mail_id, #{mailIds}) DELETE FROM oa_mail_inbox WHERE FIND_IN_SET(id, #{ids}) DELETE FROM oa_mail_del WHERE FIND_IN_SET(id, #{ids}) DELETE FROM oa_mail_del WHERE del_user_id = #{delUserId} INSERT INTO oa_mail_del ( mail_id, recipient_ids, recipient_names, copy_for_ids, copy_for_names, secret_ids, secret_names, title, mail_files, content_rich, content, creator, gmt_create, source_from, del_user_id, del_time ) VALUES( #{mailId}, #{recipientIds}, #{recipientNames}, #{copyForIds}, #{copyForNames}, #{secretIds}, #{secretNames}, #{title}, #{mailFiles}, #{contentRich}, #{content}, #{creator}, #{gmtCreate}, #{sourceFrom}, #{delUserId}, #{delTime} )