a.id AS "id", a.type AS "type", a.sub_type AS "subType", a.title AS "title", a.image AS "image", a.url AS "url", a.content AS "content", a.show_flag AS "showFlag", 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.remarks AS "remarks", a.del_flag AS "delFlag" a.id AS "id", a.type AS "type", a.sub_type AS "subType", a.title AS "title", a.image AS "image", a.url AS "url", IF(a.type = '2',a.content,NULL) AS "content", a.show_flag AS "showFlag", 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.remarks AS "remarks", a.del_flag AS "delFlag" INSERT INTO gc_web_info( id, type, sub_type, title, image, url, content, show_flag, sort, create_by, create_date, update_by, update_date, remarks, del_flag ) VALUES ( #{id}, #{type}, #{subType}, #{title}, #{image}, #{url}, #{content}, #{showFlag}, #{sort}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag} ) UPDATE gc_web_info SET type = #{type}, sub_type = #{subType}, title = #{title}, image = #{image}, url = #{url}, content = #{content}, show_flag = #{showFlag}, sort = #{sort}, update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks} WHERE id = #{id} UPDATE gc_web_info SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id}