a.id AS "id", a.title AS "title", a.pic AS "pic", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag" INSERT INTO test_pic( id, title, pic, create_by, create_date, update_by, update_date, remarks, del_flag ) VALUES ( #{id}, #{title}, #{pic}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag} ) UPDATE test_pic SET title = #{title}, pic = #{pic}, update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks} WHERE id = #{id} DELETE FROM test_pic WHERE id = #{id} UPDATE test_pic SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}