Update 004 ACTUALIZAR ESTADOS CONVENIOS.sql
This commit is contained in:
parent
79817ca828
commit
21231da69a
@ -2,21 +2,33 @@ use telus;
|
|||||||
|
|
||||||
/*verificar convenios antes del 2024*/
|
/*verificar convenios antes del 2024*/
|
||||||
|
|
||||||
--exec agcm_telus_avaluo_emision_consulta 27437, '2024-02-08'
|
--exec agcm_telus_avaluo_emision_consulta 30398, '2025-01-08'
|
||||||
|
--exec telus_avaluo_emision_consulta 79914
|
||||||
|
|
||||||
|
--select * from agcm_2022_tram_liquidaciones_convenio where lote_id = 12800
|
||||||
|
--update agcm_2022_tram_liquidaciones_convenio set estado = 'INACTIVO' where lote_id = 92434
|
||||||
|
--select * from avaluo_emision_anual_cabecera where lote_id = 12800 and esta_convenio = 1
|
||||||
|
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id IN (1324866)
|
||||||
|
--select * from rentas_estado WHERE registro_lote_id = 18103
|
||||||
|
|
||||||
|
--update rentas_estado set estado = 0 WHERE registro_id = 4201;
|
||||||
|
--update rentas_estado set estado_registro = 'ACTIVO' WHERE registro_id = 20335;
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
insert into rentas_estado(registro_lote_id,tipo_renta,estado,usuario_id,ip,pcname,detalle,estado_registro,fecha)
|
||||||
|
values(58167,0,1,18,'127.0.0.1','localhost','Convenio de pago Portal Ciudadano','ACTIVO', GETDATE())
|
||||||
|
|
||||||
|
update rentas_estado set estado_registro = 'ACTIVO' where registro_id = 19246;
|
||||||
|
*/
|
||||||
|
|
||||||
--select * from agcm_2022_tram_liquidaciones_convenio where lote_id IN (80487, 27969)
|
|
||||||
--update agcm_2022_tram_liquidaciones_convenio set estado = 'ACTIVO' where lote_id IN (27969)
|
|
||||||
--select * from avaluo_emision_anual_cabecera where lote_id IN (27969);
|
|
||||||
--update avaluo_emision_anual_cabecera set esta_convenio = 1 whedre emision_id = 2085664
|
|
||||||
--select * from rentas_estado WHERE registro_lote_id IN (80487, 27969);
|
|
||||||
--select * from rentas_estado WHERE registro_lote_id = 80487;
|
|
||||||
|
|
||||||
if OBJECT_ID('tempdb.dbo.#convenios_revisar') is not null
|
if OBJECT_ID('tempdb.dbo.#convenios_revisar') is not null
|
||||||
drop table #convenios_revisar
|
drop table #convenios_revisar
|
||||||
|
|
||||||
select id
|
select id
|
||||||
into #convenios_revisar
|
into #convenios_revisar
|
||||||
from db_olympo_web.dbo.convenios_cabecera where code in('002333');
|
from db_olympo_web.dbo.convenios_cabecera where code in('003367');
|
||||||
|
|
||||||
select b.ClaveCatastral, a.* from agcm_2022_tram_liquidaciones_convenio a
|
select b.ClaveCatastral, a.* from agcm_2022_tram_liquidaciones_convenio a
|
||||||
inner join telus_procesos.dbo.agcm_datos_claves_avaluos b on a.lote_id = b.lote_id
|
inner join telus_procesos.dbo.agcm_datos_claves_avaluos b on a.lote_id = b.lote_id
|
||||||
@ -36,17 +48,17 @@ select b.* from avaluo_emision_anual_cabecera b
|
|||||||
order by b.lote_id
|
order by b.lote_id
|
||||||
|
|
||||||
|
|
||||||
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(1740009)and esta_convenio = 1
|
--update avaluo_emision_anual_cabecera set esta_convenio = 0 where emision_id in(1907614, 1990812)and esta_convenio = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--update rentas_estado set estado_registro = 'INACTIVO' where tipo_renta=0 and registro_lote_id = 56354 and estado_registro <> 'INACTIVO'
|
--update rentas_estado set estado_registro = 'INACTIVO' where tipo_renta=0 and registro_lote_id = 63049 and estado_registro <> 'INACTIVO'
|
||||||
|
|
||||||
|
|
||||||
--update agcm_2022_tram_liquidaciones_convenio set estado = 'INACTIVO' where id = 5688
|
--update agcm_2022_tram_liquidaciones_convenio set estado = 'INACTIVO' where id = 5688
|
||||||
|
|
||||||
|
|
||||||
GOTO SALIR
|
--GOTO SALIR
|
||||||
|
|
||||||
DECLARE
|
DECLARE
|
||||||
@id_tram_liq INT,
|
@id_tram_liq INT,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user