a.id AS "id",
a.report_title AS "reportTitle",
a.des AS "des",
a.publish_time AS "publishTime",
a.report_path AS "reportPath",
a.dept_id AS "deptId",
a.create_time AS "createTime",
a.create_by AS "createBy",
a.update_time AS "updateTime",
a.update_by AS "updateBy"
1=1
AND (
)
AND ( ${sqlMap.df} )
AND ( ${sqlMap.bf} )
AND ( ${sqlMap.baseQuery} )
AND ( ${sqlMap.specQuery} )
AND (${sqlMap.dsf})
id,
report_title,
des,
publish_time,
report_path,
dept_id,
create_time,
update_time
select get_next_id('report','') from dual
select #{id} from dual
INSERT INTO report(
) VALUES (
#{id
, jdbcType=VARCHAR
},
#{reportTitle
, jdbcType=VARCHAR
},
#{des
, jdbcType=VARCHAR
},
#{publishTime
},
#{reportPath
, jdbcType=VARCHAR
},
#{deptId
, jdbcType=VARCHAR
},
#{createTime
},
#{updateTime
}
)
INSERT INTO report(
) select FFF.* from (
select
#{item.id, jdbcType=VARCHAR} as "id",
#{item.reportTitle, jdbcType=VARCHAR} as "reportTitle",
#{item.des, jdbcType=VARCHAR} as "des",
#{item.publishTime} as "publishTime",
#{item.reportPath, jdbcType=VARCHAR} as "reportPath",
#{item.deptId, jdbcType=VARCHAR} as "deptId",
#{item.createTime} as "createTime",
#{item.updateTime} as "updateTime"
from dual
) FFF
UPDATE report SET
id = #{id},
report_title = #{reportTitle},
des = #{des},
publish_time = #{publishTime},
report_path = #{reportPath},
dept_id = #{deptId},
create_time = #{createTime},
update_time = #{updateTime},
update_by = #{updateBy}
WHERE id = #{id, jdbcType=VARCHAR}
DELETE FROM public.report
WHERE
id = #{id, jdbcType=VARCHAR}