Project

General

Profile

Actions

Feature #824

open

RRV sync particelle

Added by A. Bignotti 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
30/07/2025
Due date:
% Done:

0%

Estimated time:

Description

eseguo questa su pg:

qry elenco to send

select pkid from maps.rarb_type rt where is_alive!=3 and is_current=1 and code in (
select distinct a.code
from
maps.rarb_type a,
maps.rarb_part p,
maps.part_geom pg
where
a.is_current=1 and a.is_alive !=3 and a.fl_lucidato = 1 and
p.code_parent = a.code_parent and p.is_current=1 and p.is_alive !=3 and
pg.code=p.code_part and pg.is_current=1 and pg.is_alive !=3 and
not exists (staging.rrv_parc_ora)
)


eseguo questa su oracle:

SELECT DISTINCT id_particella FROM ayb1dbae.gis_design_test ORDER BY id_particella
export parc_ora.csv


svuoto staging.rrv_parc_ora
import parc_ora.csv su pg staging.rrv_parc_ora

trovo quelle che ho nella prima query pg ma non ho nella staging.rrv_parc_ora

marca_todo(){
update maps.rarb_type set is_current=0 where pkid=7932;

insert into maps.rarb_type(pkid, code, is_current, is_alive, dt_master, fk_change_log, branch, code_parent, fk_world, dt_rilievo, note_rilievo, fk_azienda, userid, fl_lucidato, fk_ots_tipo_oss, fk_cod_ammi)
select nextval('maps.rarb_type_seq'), code, 1, is_alive, date_trunc('second', now() at time zone 'utc'), fk_change_log, branch, code_parent, fk_world, dt_rilievo, note_rilievo, fk_azienda, userid, fl_lucidato, fk_ots_tipo_oss, fk_cod_ammi from maps.rarb_type where pkid=7932;

}

ricordarsi che prima di allineare va fatto il flush
https://dev.sigeosrl.com/fibersrv-pfp/services/smarti/rrv/flush

Actions #1

Updated by V. Peverada 5 months ago

  • Status changed from New to In Progress
Actions #2

Updated by V. Peverada 5 months ago

  • Status changed from In Progress to Resolved

Aggiunto alla wiki la procedura per poter importare eventuali record mancanti:
https://redmine.sigeolab.com/projects/sian-lotto-3/wiki/RRV_Correzione_Sync

Actions

Also available in: Atom PDF