Merge pull request 'feat(aistargetdbsync): tb_ship_main_info, core20 테이블 mmsi 컬럼 업데이트 추가' (#28) from feature/ISSUE-27-add-ais-update-column into develop
Reviewed-on: #28
This commit is contained in:
커밋
b9695b6647
@ -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());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user