ptc.uuid, ptc.template_uuid as templateUuid, ptc.permission_key as permission, ptc.with_project_creator as withProjectCreator, ptc.created_at as createdAt, ptc.updated_at as updatedAt insert into perm_tpl_characteristics(uuid, template_uuid, permission_key, with_project_creator, created_at, updated_at) values(#{uuid, jdbcType=VARCHAR}, #{templateUuid, jdbcType=VARCHAR}, #{permission, jdbcType=VARCHAR}, #{withProjectCreator, jdbcType=BOOLEAN}, #{createdAt, jdbcType=BIGINT}, #{updatedAt, jdbcType=BIGINT}) update perm_tpl_characteristics set with_project_creator=#{withProjectCreator, jdbcType=BOOLEAN}, updated_at=#{updatedAt, jdbcType=BIGINT} where uuid=#{uuid} DELETE FROM perm_tpl_characteristics WHERE template_uuid = #{permissionTemplateId} delete from perm_tpl_characteristics where template_uuid in #{templateUuid}