<pg>
<insert id="insertBean" parameterType="com.hikvision.idatafusion.modelcatalogcenter.business.base.bean.DataAnalysisTaskBean"
useGeneratedKeys="true" keyProperty="id">
insert into table
(
create_time, update_time, delete_falg
)
values
(
now(), now(), 1
)
ON CONFLICT(resource_model_code, ability_code) DO update set
resource_type=EXCLUDED.resource_type,
isvalid = 1,
update_time = now()
</insert>