feat(aistargetdbsync): tb_ship_main_info, core20 테이블 mmsi 컬럼 업데이트 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
HYOJIN 2026-03-06 13:41:07 +09:00
부모 ca7ebdd29b
커밋 d9fdc4d652

파일 보기

@ -56,7 +56,8 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
cargo_ton = ?, cargo_ton = ?,
add_info = ?, add_info = ?,
sts_yn = ?, sts_yn = ?,
ancrg_yn = ? ancrg_yn = ?,
mmsi_no = ?
WHERE imo_no = ? WHERE imo_no = ?
""".formatted(getTableName()); """.formatted(getTableName());
} }
@ -77,7 +78,8 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
tonnes_cargo = ?, tonnes_cargo = ?,
extra_info = ?, extra_info = ?,
in_sts = ?, in_sts = ?,
on_berth = ? on_berth = ?,
mmsi = ?
WHERE lrno = ?; WHERE lrno = ?;
"""; """;
} }
@ -172,7 +174,12 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
// ancrg_yn onBerth (Boolean, null-safe) // ancrg_yn onBerth (Boolean, null-safe)
ps.setObject(idx++, entity.getOnBerth(), Types.BOOLEAN); ps.setObject(idx++, entity.getOnBerth(), Types.BOOLEAN);
// mmsi_no mmsi (Long 9자리 zero-padded String)
ps.setString(idx++, entity.getMmsi() != null
? String.format("%09d", entity.getMmsi()) : null);
// WHERE imo_no imoVerified (String) // WHERE imo_no imoVerified (String)
ps.setString(idx++, entity.getImoVerified()); ps.setString(idx++, entity.getImoVerified());
} }
} }