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

병합
HYOJIN feature/ISSUE-27-add-ais-update-column 에서 develop 로 1 commits 를 머지했습니다 2026-03-06 13:42:49 +09:00

파일 보기

@ -56,7 +56,8 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
cargo_ton = ?,
add_info = ?,
sts_yn = ?,
ancrg_yn = ?
ancrg_yn = ?,
mmsi_no = ?
WHERE imo_no = ?
""".formatted(getTableName());
}
@ -77,7 +78,8 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
tonnes_cargo = ?,
extra_info = ?,
in_sts = ?,
on_berth = ?
on_berth = ?,
mmsi = ?
WHERE lrno = ?;
""";
}
@ -172,7 +174,12 @@ public class ShipLastPositionSyncRepositoryImpl implements ShipLastPositionSyncR
// ancrg_yn onBerth (Boolean, null-safe)
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)
ps.setString(idx++, entity.getImoVerified());
}
}