a.id AS "id", a.title AS "title", a.links AS "links", a.enclosure AS "enclosure", a.classify AS "classify", a.manner AS "manner", a.sort AS "sort", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.del_flag AS "delFlag", c.name AS "createName" LEFT JOIN sys_user c ON c.ID = a.create_by INSERT INTO tqd_links( id, title, links, enclosure, classify, manner, sort, create_by, create_date, update_by, update_date, del_flag ) VALUES ( #{id}, #{title}, #{links}, #{enclosure}, #{classify}, #{manner}, #{sort}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{DEL_FLAG_NORMAL} ) UPDATE tqd_links SET title = #{title}, links = #{links}, enclosure = #{enclosure}, classify = #{classify}, manner = #{manner}, sort = #{sort}, update_by = #{updateBy.id}, update_date = #{updateDate} WHERE id = #{id} DELETE FROM tqd_links WHERE id = #{id} UPDATE tqd_links SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}