Merge branch 'dev_batchflag' into develop
This commit is contained in:
커밋
abe5ea1a1c
@ -53,10 +53,10 @@ public class ComplianceRepositoryImpl extends BaseJdbcRepository<ComplianceEntit
|
|||||||
shipownerswisssanctionlist, shipowneruaesanctionlist, shipownerunsanctionlist,
|
shipownerswisssanctionlist, shipowneruaesanctionlist, shipownerunsanctionlist,
|
||||||
shipsanctionedcountryportcalllast12m, shipsanctionedcountryportcalllast3m, shipsanctionedcountryportcalllast6m,
|
shipsanctionedcountryportcalllast12m, shipsanctionedcountryportcalllast3m, shipsanctionedcountryportcalllast6m,
|
||||||
shipsecuritylegaldisputeevent, shipstspartnernoncompliancelast12m, shipswisssanctionlist,
|
shipsecuritylegaldisputeevent, shipstspartnernoncompliancelast12m, shipswisssanctionlist,
|
||||||
shipunsanctionlist, batch_flag
|
shipunsanctionlist
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'N'
|
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
|
||||||
)
|
)
|
||||||
ON CONFLICT (lrimoshipno, dateamended)
|
ON CONFLICT (lrimoshipno, dateamended)
|
||||||
DO UPDATE SET
|
DO UPDATE SET
|
||||||
@ -92,8 +92,7 @@ public class ComplianceRepositoryImpl extends BaseJdbcRepository<ComplianceEntit
|
|||||||
shipsecuritylegaldisputeevent = EXCLUDED.shipsecuritylegaldisputeevent,
|
shipsecuritylegaldisputeevent = EXCLUDED.shipsecuritylegaldisputeevent,
|
||||||
shipstspartnernoncompliancelast12m = EXCLUDED.shipstspartnernoncompliancelast12m,
|
shipstspartnernoncompliancelast12m = EXCLUDED.shipstspartnernoncompliancelast12m,
|
||||||
shipswisssanctionlist = EXCLUDED.shipswisssanctionlist,
|
shipswisssanctionlist = EXCLUDED.shipswisssanctionlist,
|
||||||
shipunsanctionlist = EXCLUDED.shipunsanctionlist,
|
shipunsanctionlist = EXCLUDED.shipunsanctionlist
|
||||||
batch_flag = 'N';
|
|
||||||
""";
|
""";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -46,31 +46,7 @@ public class EventRepositoryImpl extends BaseJdbcRepository<EventDetailEntity, L
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String getUpdateSql() {
|
protected String getUpdateSql() {
|
||||||
return """
|
return null;
|
||||||
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'
|
|
||||||
;
|
|
||||||
""";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -120,7 +120,6 @@ public class PortCallsRepositoryImpl extends BaseJdbcRepository<PortCallsEntity,
|
|||||||
teu = ?,
|
teu = ?,
|
||||||
speedservice = ?,
|
speedservice = ?,
|
||||||
mainenginetype = ?,
|
mainenginetype = ?,
|
||||||
batch_flag = 'N'::character varying,
|
|
||||||
status = ?,
|
status = ?,
|
||||||
operator = ?,
|
operator = ?,
|
||||||
flagcode = ?,
|
flagcode = ?,
|
||||||
|
|||||||
@ -60,10 +60,10 @@ public class RiskRepositoryImpl extends BaseJdbcRepository<RiskEntity, Long> imp
|
|||||||
singleshipoperation, singleshipoperationnarrative, fleetsafety, fleetsafetynarrative, fleetpsc,
|
singleshipoperation, singleshipoperationnarrative, fleetsafety, fleetsafetynarrative, fleetpsc,
|
||||||
fleetpscnarrative, specialsurveyoverdue, specialsurveyoverduenarrative, ownerunknown, ownerunknownnarrative,
|
fleetpscnarrative, specialsurveyoverdue, specialsurveyoverduenarrative, ownerunknown, ownerunknownnarrative,
|
||||||
russianportcall, russianportcallnarrative, russianownerregistration, russianownerregistrationnarrative,
|
russianportcall, russianportcallnarrative, russianownerregistration, russianownerregistrationnarrative,
|
||||||
russiansts, russianstsnarrative, batch_flag
|
russiansts, russianstsnarrative
|
||||||
)
|
)
|
||||||
VALUES (
|
VALUES (
|
||||||
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'N'
|
?, ?::timestamptz, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
|
||||||
)
|
)
|
||||||
ON CONFLICT (lrno, lastupdated)
|
ON CONFLICT (lrno, lastupdated)
|
||||||
DO UPDATE SET
|
DO UPDATE SET
|
||||||
@ -148,8 +148,7 @@ public class RiskRepositoryImpl extends BaseJdbcRepository<RiskEntity, Long> imp
|
|||||||
russianownerregistration = EXCLUDED.russianownerregistration,
|
russianownerregistration = EXCLUDED.russianownerregistration,
|
||||||
russianownerregistrationnarrative = EXCLUDED.russianownerregistrationnarrative,
|
russianownerregistrationnarrative = EXCLUDED.russianownerregistrationnarrative,
|
||||||
russiansts = EXCLUDED.russiansts,
|
russiansts = EXCLUDED.russiansts,
|
||||||
russianstsnarrative = EXCLUDED.russianstsnarrative,
|
russianstsnarrative = EXCLUDED.russianstsnarrative
|
||||||
batch_flag = 'N';
|
|
||||||
""";
|
""";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user