🗃️ Last Postion Update 대상 스키마 변경

This commit is contained in:
hyojin kim 2025-12-24 14:24:17 +09:00
부모 fcf1d74c38
커밋 32af369f23
2개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제

파일 보기

@ -45,10 +45,10 @@ public class ShipLastPositionDataReader extends BaseApiReader<TargetEnhancedDto>
} }
private String getTargetTable(){ private String getTargetTable(){
return "snp_data.core20"; return "new_snp.core20";
} }
private String GET_CORE_IMO_LIST = private String GET_CORE_IMO_LIST =
"SELECT ihslrorimoshipno FROM " + getTargetTable() + " ORDER BY ihslrorimoshipno"; "SELECT lrno FROM " + getTargetTable() + " ORDER BY lrno";
@Override @Override
protected void beforeFetch(){ protected void beforeFetch(){

파일 보기

@ -41,7 +41,7 @@ public class ShipLastPositionRepositoryImpl extends BaseJdbcRepository<TargetEnh
@Override @Override
protected String getUpdateSql() { protected String getUpdateSql() {
return """ return """
UPDATE snp_data.core20 UPDATE new_snp.core20
SET lastseen = ?::timestamptz, SET lastseen = ?::timestamptz,
lastport = ?, lastport = ?,
position_latitude = ?, position_latitude = ?,
@ -51,9 +51,8 @@ public class ShipLastPositionRepositoryImpl extends BaseJdbcRepository<TargetEnh
heading = ?, heading = ?,
speedservice = ?, speedservice = ?,
cog = ?, cog = ?,
navstat = ?, navstat = ?
batch_flag = 'N' WHERE lrno = ?;
WHERE ihslrorimoshipno = ?;
"""; """;
} }