🗃️ Last Postion Update 대상 스키마 변경
This commit is contained in:
부모
fcf1d74c38
커밋
32af369f23
@ -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 = ?;
|
|
||||||
""";
|
""";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user