a.id AS "id", a.title AS "title", a.contents AS "contents", a.introduction AS "introduction", a.sendout_id AS "sendoutId", a.sendout_date AS "sendoutDate", a.receive_id AS "receiveId", a.readed AS "readed", a.remind_type AS "remindType", b.name as "sendName" left join SYS_USER b on b.id=a.receive_id INSERT INTO task_remind( title, contents, introduction, sendout_id, sendout_date, receive_id, readed, remind_type ) VALUES ( #{title}, #{contents}, #{introduction}, #{sendoutId}, #{sendoutDate}, #{receiveId}, #{readed}, #{remindType} ) UPDATE task_remind SET readed = #{readed}, remind_type = #{remindType} WHERE id = #{id} DELETE FROM task_remind WHERE id = #{id} UPDATE task_remind SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}