🗃️ remove batch_flag of new_snp schema

This commit is contained in:
hyojin kim 2026-01-08 15:57:46 +09:00
부모 e1fa48768e
커밋 d8b8a40316
4개의 변경된 파일7개의 추가작업 그리고 34개의 파일을 삭제

파일 보기

@ -53,10 +53,10 @@ public class ComplianceRepositoryImpl extends BaseJdbcRepository<ComplianceEntit
shipownerswisssanctionlist, shipowneruaesanctionlist, shipownerunsanctionlist,
shipsanctionedcountryportcalllast12m, shipsanctionedcountryportcalllast3m, shipsanctionedcountryportcalllast6m,
shipsecuritylegaldisputeevent, shipstspartnernoncompliancelast12m, shipswisssanctionlist,
shipunsanctionlist, batch_flag
shipunsanctionlist
)
VALUES (
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'N'
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
ON CONFLICT (lrimoshipno, dateamended)
DO UPDATE SET
@ -92,8 +92,7 @@ public class ComplianceRepositoryImpl extends BaseJdbcRepository<ComplianceEntit
shipsecuritylegaldisputeevent = EXCLUDED.shipsecuritylegaldisputeevent,
shipstspartnernoncompliancelast12m = EXCLUDED.shipstspartnernoncompliancelast12m,
shipswisssanctionlist = EXCLUDED.shipswisssanctionlist,
shipunsanctionlist = EXCLUDED.shipunsanctionlist,
batch_flag = 'N';
shipunsanctionlist = EXCLUDED.shipunsanctionlist
""";
}

파일 보기

@ -46,31 +46,7 @@ public class EventRepositoryImpl extends BaseJdbcRepository<EventDetailEntity, L
@Override
protected String getUpdateSql() {
return """
INSERT INTO snp_data.event (
Event_ID, Incident_ID, IHSLRorIMOShipNo, Vessel_Name, Vessel_Type,
Event_Type, Significance, Headline, Location_Name,
Published_Date, Event_Start_Date, Event_End_Date, batch_flag
) VALUES (
?, ?, ?, ?, ?,
?, ?, ?, ?,
?::timestamptz, ?::timestamptz, ?::timestamptz, 'N'
) ON CONFLICT (Event_ID) DO UPDATE
SET
Incident_ID = EXCLUDED.Incident_ID,
IHSLRorIMOShipNo = EXCLUDED.IHSLRorIMOShipNo,
Vessel_Name = EXCLUDED.Vessel_Name,
Vessel_Type = EXCLUDED.Vessel_Type,
Event_Type = EXCLUDED.Event_Type,
Significance = EXCLUDED.Significance,
Headline = EXCLUDED.Headline,
Location_Name = EXCLUDED.Location_Name,
Published_Date = EXCLUDED.Published_Date,
Event_Start_Date = EXCLUDED.Event_Start_Date,
Event_End_Date = EXCLUDED.Event_End_Date,
batch_flag = 'N'
;
""";
return null;
}
@Override

파일 보기

@ -120,7 +120,6 @@ public class PortCallsRepositoryImpl extends BaseJdbcRepository<PortCallsEntity,
teu = ?,
speedservice = ?,
mainenginetype = ?,
batch_flag = 'N'::character varying,
status = ?,
operator = ?,
flagcode = ?,

파일 보기

@ -60,10 +60,10 @@ public class RiskRepositoryImpl extends BaseJdbcRepository<RiskEntity, Long> imp
singleshipoperation, singleshipoperationnarrative, fleetsafety, fleetsafetynarrative, fleetpsc,
fleetpscnarrative, specialsurveyoverdue, specialsurveyoverduenarrative, ownerunknown, ownerunknownnarrative,
russianportcall, russianportcallnarrative, russianownerregistration, russianownerregistrationnarrative,
russiansts, russianstsnarrative, batch_flag
russiansts, russianstsnarrative
)
VALUES (
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'N'
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
)
ON CONFLICT (lrno, lastupdated)
DO UPDATE SET
@ -148,8 +148,7 @@ public class RiskRepositoryImpl extends BaseJdbcRepository<RiskEntity, Long> imp
russianownerregistration = EXCLUDED.russianownerregistration,
russianownerregistrationnarrative = EXCLUDED.russianownerregistrationnarrative,
russiansts = EXCLUDED.russiansts,
russianstsnarrative = EXCLUDED.russianstsnarrative,
batch_flag = 'N';
russianstsnarrative = EXCLUDED.russianstsnarrative
""";
}