🗃️ Crew List Unique Index Change
This commit is contained in:
부모
e1fa48768e
커밋
b842ec8d54
@ -24,7 +24,7 @@ public class JsonChangeDetector {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
// List 필드명 // 정렬 기준 복합 키 (JSON 필드명, 쉼표로 구분)
|
||||
map.put("OwnerHistory", "OwnerCode,EffectiveDate,Sequence");
|
||||
map.put("CrewList", "ID");
|
||||
map.put("CrewList", "LRNO,Shipname,Nationality");
|
||||
map.put("StowageCommodity", "Sequence,CommodityCode,StowageCode");
|
||||
map.put("GroupBeneficialOwnerHistory", "EffectiveDate,GroupBeneficialOwnerCode,Sequence");
|
||||
map.put("ShipManagerHistory", "EffectiveDate,ShipManagerCode,Sequence");
|
||||
|
||||
@ -28,12 +28,10 @@ public class ShipDetailSql {
|
||||
)VALUES(
|
||||
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
|
||||
)
|
||||
ON CONFLICT (id, lrno)
|
||||
ON CONFLICT (lrno, shipname, nationality)
|
||||
DO UPDATE SET
|
||||
datasetversion = EXCLUDED.datasetversion,
|
||||
shipname = EXCLUDED.shipname,
|
||||
crewlistdate = EXCLUDED.crewlistdate,
|
||||
nationality = EXCLUDED.nationality,
|
||||
totalcrew = EXCLUDED.totalcrew,
|
||||
totalratings = EXCLUDED.totalratings,
|
||||
totalofficers = EXCLUDED.totalofficers,
|
||||
|
||||
불러오는 중...
Reference in New Issue
Block a user