mvmn_type on conflict추가

This commit is contained in:
Kim JiMyeung 2025-12-12 11:14:10 +09:00
부모 ac78a1340a
커밋 f2970872fd
17개의 변경된 파일30개의 추가작업 그리고 35개의 파일을 삭제

파일 보기

@ -69,7 +69,7 @@ public class ShipMovementRepositoryImpl extends BaseJdbcRepository<ShipMovementE
iso2_ntn_cd,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -68,7 +68,7 @@ public class AnchorageCallsRepositoryImpl extends BaseJdbcRepository<AnchorageCa
iso2_ntn_cd,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo,mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -68,7 +68,7 @@ public class BerthCallsRepositoryImpl extends BaseJdbcRepository<BerthCallsEntit
evt_start_dt,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -1,11 +1,11 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.config;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.config;
import com.snp.batch.common.batch.config.BaseJobConfig;
import com.snp.batch.jobs.shipCurrentlyAt.batch.dto.CurrentlyAtDto;
import com.snp.batch.jobs.shipCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipCurrentlyAt.batch.processor.CurrentlyAtProcessor;
import com.snp.batch.jobs.shipCurrentlyAt.batch.reader.CurrentlyAtReader;
import com.snp.batch.jobs.shipCurrentlyAt.batch.writer.CurrentlyAtWriter;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.dto.CurrentlyAtDto;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.processor.CurrentlyAtProcessor;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.reader.CurrentlyAtReader;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.writer.CurrentlyAtWriter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.Job;
import org.springframework.batch.core.Step;

파일 보기

@ -1,4 +1,4 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.dto;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.dto;
import com.snp.batch.jobs.shipMovement.batch.dto.PortCallsPositionDto;
import lombok.Data;

파일 보기

@ -1,4 +1,4 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.dto;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

파일 보기

@ -1,4 +1,4 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.entity;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity;
import com.fasterxml.jackson.databind.JsonNode;
import jakarta.persistence.GeneratedValue;

파일 보기

@ -1,10 +1,10 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.processor;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.processor;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.snp.batch.common.batch.processor.BaseProcessor;
import com.snp.batch.jobs.shipCurrentlyAt.batch.dto.CurrentlyAtDto;
import com.snp.batch.jobs.shipCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.dto.CurrentlyAtDto;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity.CurrentlyAtEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

파일 보기

@ -1,7 +1,7 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.reader;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.reader;
import com.snp.batch.common.batch.reader.BaseApiReader;
import com.snp.batch.jobs.shipCurrentlyAt.batch.dto.CurrentlyAtDto;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.dto.CurrentlyAtDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.jdbc.core.JdbcTemplate;

파일 보기

@ -1,6 +1,6 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.repository;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.repository;
import com.snp.batch.jobs.shipCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity.CurrentlyAtEntity;
import java.util.List;

파일 보기

@ -1,19 +1,14 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.repository;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.repository;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.snp.batch.common.batch.repository.BaseJdbcRepository;
import com.snp.batch.jobs.shipCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipMovement.batch.entity.ShipMovementEntity;
import com.snp.batch.jobs.shipMovement.batch.repository.ShipMovementRepository;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity.CurrentlyAtEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Repository;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;
@ -71,7 +66,7 @@ public class CurrentlyAtRepositoryImpl extends BaseJdbcRepository<CurrentlyAtEnt
iso2_ntn_cd,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -1,8 +1,8 @@
package com.snp.batch.jobs.shipCurrentlyAt.batch.writer;
package com.snp.batch.jobs.shipMovementCurrentlyAt.batch.writer;
import com.snp.batch.common.batch.writer.BaseWriter;
import com.snp.batch.jobs.shipCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipCurrentlyAt.batch.repository.CurrentlyAtRepository;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.entity.CurrentlyAtEntity;
import com.snp.batch.jobs.shipMovementCurrentlyAt.batch.repository.CurrentlyAtRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

파일 보기

@ -66,7 +66,7 @@ public class DarkActivityRepositoryImpl extends BaseJdbcRepository<DarkActivityE
evt_start_dt,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -57,7 +57,7 @@ public class DestinationRepositoryImpl extends BaseJdbcRepository<DestinationEnt
iso2_ntn_cd,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -67,7 +67,7 @@ public class StsOperationRepositoryImpl extends BaseJdbcRepository<StsOperationE
evt_start_dt,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -66,7 +66,7 @@ public class TerminalCallsRepositoryImpl extends BaseJdbcRepository<TerminalCall
evt_start_dt,
lcinfo
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,

파일 보기

@ -51,7 +51,7 @@ public class TransitlsRepositoryImpl extends BaseJdbcRepository<TransitsEntity,
fclty_type,
draft
) VALUES (?, ?, ?, ?, ?, ?)
ON CONFLICT (imo, mvmn_dt)
ON CONFLICT (imo, mvmn_type, mvmn_dt)
DO UPDATE SET
mvmn_type = EXCLUDED.mvmn_type,
mvmn_dt = EXCLUDED.mvmn_dt,