🗃️ core20 컬럼 추가 : AIS 추가 컬럼
This commit is contained in:
부모
31262f5dda
커밋
3fb133e367
@ -46,7 +46,7 @@ public class TargetEnhancedDto {
|
|||||||
private String imoVerified;
|
private String imoVerified;
|
||||||
|
|
||||||
@JsonProperty("OnBerth")
|
@JsonProperty("OnBerth")
|
||||||
private Boolean onBerth;
|
private Object onBerth;
|
||||||
|
|
||||||
@JsonProperty("DestinationTidied")
|
@JsonProperty("DestinationTidied")
|
||||||
private String destinationTidied;
|
private String destinationTidied;
|
||||||
|
|||||||
@ -39,7 +39,7 @@ public class TargetEnhancedEntity extends BaseEntity {
|
|||||||
|
|
||||||
private String imoVerified;
|
private String imoVerified;
|
||||||
|
|
||||||
private Boolean onBerth;
|
private Object onBerth;
|
||||||
|
|
||||||
private String destinationTidied;
|
private String destinationTidied;
|
||||||
|
|
||||||
|
|||||||
@ -9,6 +9,7 @@ import org.springframework.stereotype.Repository;
|
|||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
|
import java.sql.Types;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@ -51,7 +52,11 @@ public class ShipLastPositionRepositoryImpl extends BaseJdbcRepository<TargetEnh
|
|||||||
heading = ?,
|
heading = ?,
|
||||||
speedservice = ?,
|
speedservice = ?,
|
||||||
cog = ?,
|
cog = ?,
|
||||||
navstat = ?
|
navstat = ?,
|
||||||
|
tonnes_cargo = ?,
|
||||||
|
extra_info = ?,
|
||||||
|
in_sts = ?,
|
||||||
|
on_berth = ?
|
||||||
WHERE lrno = ?;
|
WHERE lrno = ?;
|
||||||
""";
|
""";
|
||||||
}
|
}
|
||||||
@ -74,6 +79,10 @@ public class ShipLastPositionRepositoryImpl extends BaseJdbcRepository<TargetEnh
|
|||||||
ps.setDouble(idx++, entity.getSog()); // sog : speedservice (Double)
|
ps.setDouble(idx++, entity.getSog()); // sog : speedservice (Double)
|
||||||
ps.setDouble(idx++, entity.getCog()); // cog : cog (Double)
|
ps.setDouble(idx++, entity.getCog()); // cog : cog (Double)
|
||||||
ps.setString(idx++, entity.getStatus()); // status : navstat (String)
|
ps.setString(idx++, entity.getStatus()); // status : navstat (String)
|
||||||
|
ps.setInt(idx++, entity.getTonnesCargo()); // status : tonnes_cargo (Int)
|
||||||
|
ps.setString(idx++, entity.getExtraInfo()); // status : extra_info (String)
|
||||||
|
ps.setObject(idx++, entity.getInSts(), Types.INTEGER);
|
||||||
|
ps.setObject(idx++, entity.getOnBerth(), Types.BOOLEAN);
|
||||||
ps.setString(idx++, entity.getImoVerified()); // imoVerified : imo (String)
|
ps.setString(idx++, entity.getImoVerified()); // imoVerified : imo (String)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user