diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java deleted file mode 100644 index cd1298d..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用记录 服务类 - * - * @author a203 - */ -public interface IAisLogService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java deleted file mode 100644 index cd1298d..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用记录 服务类 - * - * @author a203 - */ -public interface IAisLogService extends IService { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java deleted file mode 100644 index 9505b18..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.AisLogMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; -import org.springframework.stereotype.Service; - -/** - * AIS调用记录 服务实现类 - * - * @author a203 - */ - -@Service -public class AisLogServiceImpl extends ServiceImpl implements IAisLogService { - - public AisLogServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java deleted file mode 100644 index cd1298d..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用记录 服务类 - * - * @author a203 - */ -public interface IAisLogService extends IService { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java deleted file mode 100644 index 9505b18..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.AisLogMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; -import org.springframework.stereotype.Service; - -/** - * AIS调用记录 服务实现类 - * - * @author a203 - */ - -@Service -public class AisLogServiceImpl extends ServiceImpl implements IAisLogService { - - public AisLogServiceImpl() { - - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java index e6dcdd9..d477840 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java @@ -5,13 +5,10 @@ import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.model.remote.ShipModel; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; +import com.casic.missiles.modular.system.model.ShipModel; import com.casic.missiles.modular.system.service.IShipService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; -import com.casic.missiles.modular.system.utils.TimeUtil; import okhttp3.Request; import org.springframework.stereotype.Service; @@ -28,10 +25,9 @@ public class ShipServiceImpl implements IShipService { private static final String SUCCESS_CODE = "0"; - private final IAisLogService logService; - public ShipServiceImpl(IAisLogService logService) { - this.logService = logService; + public ShipServiceImpl() { + } @Override @@ -65,13 +61,6 @@ String res = HttpRequestHelper.doPost(request); //先解析出code,根据code判断 if (SUCCESS_CODE.equals(getResponseCode(res))) { - //请求成功才保存ais访问记录 - AisLog aisLog = new AisLog(); - aisLog.setRequestParam(requestBody); - aisLog.setResponse(res); - aisLog.setRequestTime(TimeUtil.getCurrentTime()); - logService.save(aisLog); - ShipModel remoteData = JSON.parseObject(res, new TypeReference() { }); for (ShipModel.DataBean data : remoteData.getData()) { diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java deleted file mode 100644 index cd1298d..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用记录 服务类 - * - * @author a203 - */ -public interface IAisLogService extends IService { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java deleted file mode 100644 index 9505b18..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.AisLogMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; -import org.springframework.stereotype.Service; - -/** - * AIS调用记录 服务实现类 - * - * @author a203 - */ - -@Service -public class AisLogServiceImpl extends ServiceImpl implements IAisLogService { - - public AisLogServiceImpl() { - - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java index e6dcdd9..d477840 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java @@ -5,13 +5,10 @@ import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.model.remote.ShipModel; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; +import com.casic.missiles.modular.system.model.ShipModel; import com.casic.missiles.modular.system.service.IShipService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; -import com.casic.missiles.modular.system.utils.TimeUtil; import okhttp3.Request; import org.springframework.stereotype.Service; @@ -28,10 +25,9 @@ public class ShipServiceImpl implements IShipService { private static final String SUCCESS_CODE = "0"; - private final IAisLogService logService; - public ShipServiceImpl(IAisLogService logService) { - this.logService = logService; + public ShipServiceImpl() { + } @Override @@ -65,13 +61,6 @@ String res = HttpRequestHelper.doPost(request); //先解析出code,根据code判断 if (SUCCESS_CODE.equals(getResponseCode(res))) { - //请求成功才保存ais访问记录 - AisLog aisLog = new AisLog(); - aisLog.setRequestParam(requestBody); - aisLog.setResponse(res); - aisLog.setRequestTime(TimeUtil.getCurrentTime()); - logService.save(aisLog); - ShipModel remoteData = JSON.parseObject(res, new TypeReference() { }); for (ShipModel.DataBean data : remoteData.getData()) { diff --git a/casic-web/pom.xml b/casic-web/pom.xml index a36cc14..6a2f7e9 100644 --- a/casic-web/pom.xml +++ b/casic-web/pom.xml @@ -112,11 +112,6 @@ - - com.casic - casic-job-quartz - 2.0.0.alpha - diff --git a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java b/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java deleted file mode 100644 index 87b8c72..0000000 --- a/casic-server/src/main/java/com/casic/missiles/job/TyphoonQuartzJob.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.casic.missiles.job; - -import com.casic.missiles.modular.system.service.ITyphoonService; -import lombok.extern.slf4j.Slf4j; -import org.springframework.scheduling.annotation.Scheduled; -import org.springframework.stereotype.Component; - -/** - * 台风数据定时任务,每小时执行一次 - * - * @author a203 - * @Description 依赖casic-job-quartz,并在CasicApplication上增加注解 @EnableScheduling - */ -@Slf4j -@Component -public class TyphoonQuartzJob { - private final ITyphoonService typhoonService; - - public TyphoonQuartzJob(ITyphoonService typhoonService) { - this.typhoonService = typhoonService; - } - - @Scheduled(cron = "0 0 */1 * * ?") - public void execute() { - typhoonService.saveTyphoon(); - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java index 44a55d6..e0c98ec 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/controller/EnvironmentController.java @@ -8,7 +8,6 @@ import com.casic.missiles.modular.system.service.ITyphoonService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @@ -33,20 +32,20 @@ /** * 台风列表 */ - @GetMapping(value = "/typhoonList") + @GetMapping(value = "/saveTyphoon") @ResponseBody public Object list() { - List typhoonList = typhoonService.currentTyphoonList(); + List typhoonList = typhoonService.saveTyphoon(); return ResponseData.success(typhoonList); } /** * 台风详情 */ - @GetMapping(value = "/typhoonDetail/{typhoonId}") + @GetMapping(value = "/typhoonDetail") @ResponseBody - public Object detail(@PathVariable("typhoonId") String typhoonId) { - TyphoonDetailDTO detailDTO = typhoonService.typhoonDetail(typhoonId); + public Object detail(String typhoonId) { + TyphoonDetailDTO detailDTO = typhoonService.updateTyphoon(typhoonId); return ResponseData.success(detailDTO); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java deleted file mode 100644 index 1f4757d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/LandPointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆数据信息 Mapper 接口 - * - * @author a203 - */ -public interface LandPointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java deleted file mode 100644 index f31f6d0..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/RoutePointMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 Mapper 接口 - * - * @author a203 - */ -public interface RoutePointMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java deleted file mode 100644 index bce7a6b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonDetailMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonDetailMapper extends BaseMapper { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java deleted file mode 100644 index 40fcb32..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/TyphoonMapper.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.Typhoon; - -import java.util.List; - -/** - * 台风数据信息 Mapper 接口 - * - * @author a203 - */ -public interface TyphoonMapper extends BaseMapper { - - /** - * 查询当前未消散的台风 - * - * @return {@link List} - */ - List selectCurrentTyphoon(); -} \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml b/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml deleted file mode 100644 index 73498fb..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dao/mapping/TyphoonMapper.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java index 2debc96..9839a7e 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/OceanDetailDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import lombok.Data; import java.text.DecimalFormat; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java index e3b3bb3..6e7d7a7 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.Typhoon; +import com.casic.missiles.modular.system.model.TyphoonModel; import lombok.Data; /** @@ -65,18 +65,18 @@ */ private String time; - public TyphoonDTO(Typhoon data) { - this.typhoonId = data.getTyphoonId(); + public TyphoonDTO(TyphoonModel.ShowapiResBodyBean.ListBean data) { + this.typhoonId = data.getTfid(); this.name = data.getName(); - this.engName = data.getEngName(); - this.lng = data.getLng(); - this.lat = data.getLat(); - this.typhoonType = data.getTyphoonType(); - this.centerPressure = data.getCenterPressure(); + this.engName = data.getEnname(); + this.lng = Double.valueOf(data.getLng()); + this.lat = Double.valueOf(data.getLat()); + this.typhoonType = data.getStrong(); + this.centerPressure = data.getPressure(); this.speed = data.getSpeed(); - this.power = data.getPower(); - this.moveSpeed = data.getMoveSpeed(); - this.moveDirection = data.getMoveDirection(); + this.power = Integer.valueOf(data.getPower()); + this.moveSpeed = data.getMovespeed(); + this.moveDirection = data.getMovedirection(); this.radius10 = data.getRadius10(); this.radius7 = data.getRadius7(); this.time = data.getTime(); diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java index 295c57f..b19b68f 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/dto/TyphoonDetailDTO.java @@ -1,8 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; import lombok.Data; import java.util.ArrayList; @@ -142,23 +140,25 @@ private String centerPosition; } - public TyphoonDetailDTO(TyphoonDetail detail, List landBeans, List routeBeans) { - this.typhoonId = detail.getTyphoonId(); + public TyphoonDetailDTO(TyphoonDetailModel.ShowapiResBodyBean.ObjBean detail, + List landBeans, + List routeBeans) { + this.typhoonId = detail.getTfid(); this.name = detail.getName(); - this.engName = detail.getEngName(); - this.warnLevel = detail.getWarnLevel(); - this.centerLng = detail.getCenterLng(); - this.centerLat = detail.getCenterLat(); - this.startTime = detail.getStartTime(); - this.endTime = detail.getEndTime(); - this.isActive = detail.getIsActive(); + this.engName = detail.getEnname(); + this.warnLevel = detail.getWarnlevel(); + this.centerLng = Double.valueOf(detail.getCenterlng()); + this.centerLat = Double.valueOf(detail.getCenterlat()); + this.startTime = detail.getStarttime(); + this.endTime = detail.getEndtime(); + this.isActive = detail.getIsactive(); - List lands = new ArrayList<>(); - for (LandPoint landBean : landBeans) { + List lands = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan landBean : landBeans) { LandBan bean = new LandBan(); - bean.landAddress = landBean.getLandAddress(); - bean.landTime = landBean.getLandTime(); - bean.type = landBean.getType(); + bean.landAddress = landBean.getLandaddress(); + bean.landTime = landBean.getLandtime(); + bean.type = landBean.getStrong(); bean.lng = landBean.getLng(); bean.lat = landBean.getLat(); bean.info = landBean.getInfo(); @@ -166,23 +166,23 @@ } this.land = lands; - List points = new ArrayList<>(); - for (RoutePoint point : routeBeans) { + List points = new ArrayList<>(); + for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routeBeans) { PointBean pointBean = new PointBean(); pointBean.time = point.getTime(); - pointBean.centerPressure = point.getCenterPressure(); + pointBean.centerPressure = point.getPressure(); pointBean.speed = point.getSpeed(); - pointBean.typhoonType = point.getTyphoonType(); - pointBean.moveSpeed = point.getMoveSpeed(); - pointBean.power = point.getPower(); - pointBean.moveDirection = point.getMoveDirection(); + pointBean.typhoonType = point.getStrong(); + pointBean.moveSpeed = point.getMovespeed(); + pointBean.power = Integer.valueOf(point.getPower()); + pointBean.moveDirection = point.getMovedirection(); pointBean.lng = point.getLng(); pointBean.lat = point.getLat(); pointBean.radius12 = point.getRadius12(); pointBean.radius10 = point.getRadius10(); pointBean.radius7 = point.getRadius7(); - pointBean.routePrediction = point.getRoutePrediction(); - pointBean.centerPosition = point.getCenterPosition(); + pointBean.routePrediction = point.getJl(); + pointBean.centerPosition = point.getCkposition(); points.add(pointBean); } this.points = points; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java new file mode 100644 index 0000000..1b2f5c5 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/OceanDetailModel.java @@ -0,0 +1,439 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方洋流数据模型 + * + * @author a203 + */ +public class OceanDetailModel { + + /** + * code : 0 + * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} + * message : success + * etime : 1634786517992 + */ + + private int code; + private DataBean data; + private String message; + private long etime; + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public DataBean getData() { + return data; + } + + public void setData(DataBean data) { + this.data = data; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public long getEtime() { + return etime; + } + + public void setEtime(long etime) { + this.etime = etime; + } + + public static class DataBean { + /** + * lon : 114.338597 + * lat : 18.273134 + * date : 2021-10-21 + * hour : 10 + * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] + */ + + private double lon; + private double lat; + private String date; + private int hour; + private List list; + + public double getLon() { + return lon; + } + + public void setLon(double lon) { + this.lon = lon; + } + + public double getLat() { + return lat; + } + + public void setLat(double lat) { + this.lat = lat; + } + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public int getHour() { + return hour; + } + + public void setHour(int hour) { + this.hour = hour; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * date : 2021-10-21 + * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} + */ + + private String date; + private YtxBean ytx; + private MeteoBean meteo; + + public String getDate() { + return date; + } + + public void setDate(String date) { + this.date = date; + } + + public YtxBean getYtx() { + return ytx; + } + + public void setYtx(YtxBean ytx) { + this.ytx = ytx; + } + + public MeteoBean getMeteo() { + return meteo; + } + + public void setMeteo(MeteoBean meteo) { + this.meteo = meteo; + } + + public static class YtxBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + + public static class MeteoBean { + /** + * currentMag : 0.8194745182991028 + * currentDir : 311.85589599609375 + * swellDir : 54.90005874633789 + * swellHgt : 1.0300003290176392 + * swellPrd : 6.740001201629639 + * waveDir : 51.860050201416016 + * waveHgt : 1.0500003099441528 + * wavePrd : 6.740001201629639 + * windMag : 4.520016193389893 + * windDir : 84.48993682861328 + * surfPres : 101099.5625 + * surface_Tem : 301.4056800842285 + * surfaceTem : 28.255680084228516 + * surfTem : 28.255680084228516 + */ + + private double currentMag; + private double currentDir; + private double swellDir; + private double swellHgt; + private double swellPrd; + private double waveDir; + private double waveHgt; + private double wavePrd; + private double windMag; + private double windDir; + private double surfPres; + private double surface_Tem; + private double surfaceTem; + private double surfTem; + + public double getCurrentMag() { + return currentMag; + } + + public void setCurrentMag(double currentMag) { + this.currentMag = currentMag; + } + + public double getCurrentDir() { + return currentDir; + } + + public void setCurrentDir(double currentDir) { + this.currentDir = currentDir; + } + + public double getSwellDir() { + return swellDir; + } + + public void setSwellDir(double swellDir) { + this.swellDir = swellDir; + } + + public double getSwellHgt() { + return swellHgt; + } + + public void setSwellHgt(double swellHgt) { + this.swellHgt = swellHgt; + } + + public double getSwellPrd() { + return swellPrd; + } + + public void setSwellPrd(double swellPrd) { + this.swellPrd = swellPrd; + } + + public double getWaveDir() { + return waveDir; + } + + public void setWaveDir(double waveDir) { + this.waveDir = waveDir; + } + + public double getWaveHgt() { + return waveHgt; + } + + public void setWaveHgt(double waveHgt) { + this.waveHgt = waveHgt; + } + + public double getWavePrd() { + return wavePrd; + } + + public void setWavePrd(double wavePrd) { + this.wavePrd = wavePrd; + } + + public double getWindMag() { + return windMag; + } + + public void setWindMag(double windMag) { + this.windMag = windMag; + } + + public double getWindDir() { + return windDir; + } + + public void setWindDir(double windDir) { + this.windDir = windDir; + } + + public double getSurfPres() { + return surfPres; + } + + public void setSurfPres(double surfPres) { + this.surfPres = surfPres; + } + + public double getSurface_Tem() { + return surface_Tem; + } + + public void setSurface_Tem(double surface_Tem) { + this.surface_Tem = surface_Tem; + } + + public double getSurfaceTem() { + return surfaceTem; + } + + public void setSurfaceTem(double surfaceTem) { + this.surfaceTem = surfaceTem; + } + + public double getSurfTem() { + return surfTem; + } + + public void setSurfTem(double surfTem) { + this.surfTem = surfTem; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java new file mode 100644 index 0000000..9e99dda --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonDetailModel.java @@ -0,0 +1,419 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonDetailModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 6155596a0de376ce34c7b594 + * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} + */ + + private int ret_code; + private ObjBean obj; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public ObjBean getObj() { + return obj; + } + + public void setObj(ObjBean obj) { + this.obj = obj; + } + + public static class ObjBean { + /** + * endtime : 2021-9-30 8:00:00 + * centerlng : 139.300000 + * starttime : 2021-9-23 20:00:00 + * tfid : 202116 + * isactive : 1 + * centerlat : 25.200000 + * name : 蒲公英 + * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] + * warnlevel : white + * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] + * enname : Mindulle + */ + + private String endtime; + private String centerlng; + private String starttime; + private String tfid; + private String isactive; + private String centerlat; + private String name; + private String warnlevel; + private String enname; + private List land; + private List points; + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime; + } + + public String getCenterlng() { + return centerlng; + } + + public void setCenterlng(String centerlng) { + this.centerlng = centerlng; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getIsactive() { + return isactive; + } + + public void setIsactive(String isactive) { + this.isactive = isactive; + } + + public String getCenterlat() { + return centerlat; + } + + public void setCenterlat(String centerlat) { + this.centerlat = centerlat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getWarnlevel() { + return warnlevel; + } + + public void setWarnlevel(String warnlevel) { + this.warnlevel = warnlevel; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + + public List getLand() { + return land; + } + + public void setLand(List land) { + this.land = land; + } + + public static class LandBan { + /** + * landaddress : 朱家尖镇 + * strong : 强台风 + * lng : 122.39 + * lat : 29.83 + * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 + * landtime : 2015/7/11 16:40:00 + */ + + private String landaddress; + private String strong; + private Double lng; + private Double lat; + private String info; + private String landtime; + + public String getLandaddress() { + return landaddress; + } + + public void setLandaddress(String landaddress) { + this.landaddress = landaddress; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public String getLandtime() { + return landtime; + } + + public void setLandtime(String landtime) { + this.landtime = landtime; + } + } + + public List getPoints() { + return points; + } + + public void setPoints(List points) { + this.points = points; + } + + public static class PointsBean { + /** + * time : 2021-9-23 20:00:00 + * pressure : 998 + * radius10 : + * speed : 18 + * strong : 热带风暴 + * movespeed : 20 + * radius12 : + * power : 8 + * lng : 143.30 + * movedirection : 西北西 + * lat : 13.80 + * radius7 : 250|220|200|180 + * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) + * ckposition : 距离日本东京南偏西方向约1060公里 + */ + + private String time; + private String pressure; + private String radius10; + private String speed; + private String strong; + private String movespeed; + private String radius12; + private String power; + private Double lng; + private String movedirection; + private Double lat; + private String radius7; + private String jl; + private String ckposition; + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getRadius12() { + return radius12; + } + + public void setRadius12(String radius12) { + this.radius12 = radius12; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public Double getLng() { + return lng; + } + + public void setLng(Double lng) { + this.lng = lng; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getJl() { + return jl; + } + + public void setJl(String jl) { + this.jl = jl; + } + + public String getCkposition() { + return ckposition; + } + + public void setCkposition(String ckposition) { + this.ckposition = ckposition; + } + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java new file mode 100644 index 0000000..2ae27f7 --- /dev/null +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/model/TyphoonModel.java @@ -0,0 +1,237 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方台风数据模型 + * + * @author a203 + */ +public class TyphoonModel { + + /** + * showapi_res_error : + * showapi_fee_num : 1 + * showapi_res_code : 0 + * showapi_res_id : 61554fbe0de376d03494057c + * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} + */ + + private String showapi_res_error; + private int showapi_fee_num; + private int showapi_res_code; + private String showapi_res_id; + private ShowapiResBodyBean showapi_res_body; + + public String getShowapi_res_error() { + return showapi_res_error; + } + + public void setShowapi_res_error(String showapi_res_error) { + this.showapi_res_error = showapi_res_error; + } + + public int getShowapi_fee_num() { + return showapi_fee_num; + } + + public void setShowapi_fee_num(int showapi_fee_num) { + this.showapi_fee_num = showapi_fee_num; + } + + public int getShowapi_res_code() { + return showapi_res_code; + } + + public void setShowapi_res_code(int showapi_res_code) { + this.showapi_res_code = showapi_res_code; + } + + public String getShowapi_res_id() { + return showapi_res_id; + } + + public void setShowapi_res_id(String showapi_res_id) { + this.showapi_res_id = showapi_res_id; + } + + public ShowapiResBodyBean getShowapi_res_body() { + return showapi_res_body; + } + + public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { + this.showapi_res_body = showapi_res_body; + } + + public static class ShowapiResBodyBean { + /** + * ret_code : 0 + * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] + */ + + private int ret_code; + private List list; + + public int getRet_code() { + return ret_code; + } + + public void setRet_code(int ret_code) { + this.ret_code = ret_code; + } + + public List getList() { + return list; + } + + public void setList(List list) { + this.list = list; + } + + public static class ListBean { + /** + * pressure : 945 + * tfid : 202116 + * radius10 : 150 + * speed : 48 + * lng : 136.40 + * radius7 : 350 + * time : 2021-09-30 08:00:00 + * movespeed : 23 + * strong : 强台风 + * name : 蒲公英 + * power : 15 + * movedirection : 北北东 + * lat : 26.60 + * enname : Mindulle + */ + + private String pressure; + private String tfid; + private String radius10; + private String speed; + private String lng; + private String radius7; + private String time; + private String movespeed; + private String strong; + private String name; + private String power; + private String movedirection; + private String lat; + private String enname; + + public String getPressure() { + return pressure; + } + + public void setPressure(String pressure) { + this.pressure = pressure; + } + + public String getTfid() { + return tfid; + } + + public void setTfid(String tfid) { + this.tfid = tfid; + } + + public String getRadius10() { + return radius10; + } + + public void setRadius10(String radius10) { + this.radius10 = radius10; + } + + public String getSpeed() { + return speed; + } + + public void setSpeed(String speed) { + this.speed = speed; + } + + public String getLng() { + return lng; + } + + public void setLng(String lng) { + this.lng = lng; + } + + public String getRadius7() { + return radius7; + } + + public void setRadius7(String radius7) { + this.radius7 = radius7; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; + } + + public String getMovespeed() { + return movespeed; + } + + public void setMovespeed(String movespeed) { + this.movespeed = movespeed; + } + + public String getStrong() { + return strong; + } + + public void setStrong(String strong) { + this.strong = strong; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getPower() { + return power; + } + + public void setPower(String power) { + this.power = power; + } + + public String getMovedirection() { + return movedirection; + } + + public void setMovedirection(String movedirection) { + this.movedirection = movedirection; + } + + public String getLat() { + return lat; + } + + public void setLat(String lat) { + this.lat = lat; + } + + public String getEnname() { + return enname; + } + + public void setEnname(String enname) { + this.enname = enname; + } + } + } +} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java deleted file mode 100644 index 742560a..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/OceanDetailModel.java +++ /dev/null @@ -1,439 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方洋流数据模型 - * - * @author a203 - */ -public class OceanDetailModel { - - /** - * code : 0 - * data : {"lon":114.338597,"lat":18.273134,"date":"2021-10-21","hour":10,"list":[{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}]} - * message : success - * etime : 1634786517992 - */ - - private int code; - private DataBean data; - private String message; - private long etime; - - public int getCode() { - return code; - } - - public void setCode(int code) { - this.code = code; - } - - public DataBean getData() { - return data; - } - - public void setData(DataBean data) { - this.data = data; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public long getEtime() { - return etime; - } - - public void setEtime(long etime) { - this.etime = etime; - } - - public static class DataBean { - /** - * lon : 114.338597 - * lat : 18.273134 - * date : 2021-10-21 - * hour : 10 - * list : [{"date":"2021-10-21","ytx":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516},"meteo":{"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516}}] - */ - - private double lon; - private double lat; - private String date; - private int hour; - private List list; - - public double getLon() { - return lon; - } - - public void setLon(double lon) { - this.lon = lon; - } - - public double getLat() { - return lat; - } - - public void setLat(double lat) { - this.lat = lat; - } - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public int getHour() { - return hour; - } - - public void setHour(int hour) { - this.hour = hour; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * date : 2021-10-21 - * ytx : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - * meteo : {"currentMag":0.8194745182991028,"currentDir":311.85589599609375,"swellDir":54.90005874633789,"swellHgt":1.0300003290176392,"swellPrd":6.740001201629639,"waveDir":51.860050201416016,"waveHgt":1.0500003099441528,"wavePrd":6.740001201629639,"windMag":4.520016193389893,"windDir":84.48993682861328,"surfPres":101099.5625,"surface_Tem":301.4056800842285,"surfaceTem":28.255680084228516,"surfTem":28.255680084228516} - */ - - private String date; - private YtxBean ytx; - private MeteoBean meteo; - - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public YtxBean getYtx() { - return ytx; - } - - public void setYtx(YtxBean ytx) { - this.ytx = ytx; - } - - public MeteoBean getMeteo() { - return meteo; - } - - public void setMeteo(MeteoBean meteo) { - this.meteo = meteo; - } - - public static class YtxBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - - public static class MeteoBean { - /** - * currentMag : 0.8194745182991028 - * currentDir : 311.85589599609375 - * swellDir : 54.90005874633789 - * swellHgt : 1.0300003290176392 - * swellPrd : 6.740001201629639 - * waveDir : 51.860050201416016 - * waveHgt : 1.0500003099441528 - * wavePrd : 6.740001201629639 - * windMag : 4.520016193389893 - * windDir : 84.48993682861328 - * surfPres : 101099.5625 - * surface_Tem : 301.4056800842285 - * surfaceTem : 28.255680084228516 - * surfTem : 28.255680084228516 - */ - - private double currentMag; - private double currentDir; - private double swellDir; - private double swellHgt; - private double swellPrd; - private double waveDir; - private double waveHgt; - private double wavePrd; - private double windMag; - private double windDir; - private double surfPres; - private double surface_Tem; - private double surfaceTem; - private double surfTem; - - public double getCurrentMag() { - return currentMag; - } - - public void setCurrentMag(double currentMag) { - this.currentMag = currentMag; - } - - public double getCurrentDir() { - return currentDir; - } - - public void setCurrentDir(double currentDir) { - this.currentDir = currentDir; - } - - public double getSwellDir() { - return swellDir; - } - - public void setSwellDir(double swellDir) { - this.swellDir = swellDir; - } - - public double getSwellHgt() { - return swellHgt; - } - - public void setSwellHgt(double swellHgt) { - this.swellHgt = swellHgt; - } - - public double getSwellPrd() { - return swellPrd; - } - - public void setSwellPrd(double swellPrd) { - this.swellPrd = swellPrd; - } - - public double getWaveDir() { - return waveDir; - } - - public void setWaveDir(double waveDir) { - this.waveDir = waveDir; - } - - public double getWaveHgt() { - return waveHgt; - } - - public void setWaveHgt(double waveHgt) { - this.waveHgt = waveHgt; - } - - public double getWavePrd() { - return wavePrd; - } - - public void setWavePrd(double wavePrd) { - this.wavePrd = wavePrd; - } - - public double getWindMag() { - return windMag; - } - - public void setWindMag(double windMag) { - this.windMag = windMag; - } - - public double getWindDir() { - return windDir; - } - - public void setWindDir(double windDir) { - this.windDir = windDir; - } - - public double getSurfPres() { - return surfPres; - } - - public void setSurfPres(double surfPres) { - this.surfPres = surfPres; - } - - public double getSurface_Tem() { - return surface_Tem; - } - - public void setSurface_Tem(double surface_Tem) { - this.surface_Tem = surface_Tem; - } - - public double getSurfaceTem() { - return surfaceTem; - } - - public void setSurfaceTem(double surfaceTem) { - this.surfaceTem = surfaceTem; - } - - public double getSurfTem() { - return surfTem; - } - - public void setSurfTem(double surfTem) { - this.surfTem = surfTem; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java deleted file mode 100644 index 26d347b..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonDetailModel.java +++ /dev/null @@ -1,419 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonDetailModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 6155596a0de376ce34c7b594 - * showapi_res_body : {"ret_code":0,"obj":{"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"}} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * obj : {"endtime":"2021-9-30 8:00:00","centerlng":"139.300000","starttime":"2021-9-23 20:00:00","tfid":"202116","isactive":"1","centerlat":"25.200000","name":"蒲公英","land":[],"warnlevel":"white","points":[{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}],"enname":"Mindulle"} - */ - - private int ret_code; - private ObjBean obj; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public ObjBean getObj() { - return obj; - } - - public void setObj(ObjBean obj) { - this.obj = obj; - } - - public static class ObjBean { - /** - * endtime : 2021-9-30 8:00:00 - * centerlng : 139.300000 - * starttime : 2021-9-23 20:00:00 - * tfid : 202116 - * isactive : 1 - * centerlat : 25.200000 - * name : 蒲公英 - * land : [{"landaddress":"朱家尖镇","strong":"强台风","lng":"122.39","lat":"29.83","info":"\u201c灿鸿\u201d11日16时40分前后登陆浙江舟山市朱家尖镇","landtime":"2015/7/11 16:40:00"}] - * warnlevel : white - * points : [{"time":"2021-9-23 20:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"20","radius12":"","power":"8","lng":"143.30","movedirection":"西北西","lat":"13.80","radius7":"250|220|200|180"},{"time":"2021-9-24 2:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"24","radius12":"","power":"8","lng":"142.10","movedirection":"西北西","lat":"14.10","radius7":"250|220|200|180"},{"time":"2021-9-24 5:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"18","radius12":"","power":"8","lng":"141.50","movedirection":"北西","lat":"14.50","radius7":"250|220|200|180"},{"time":"2021-9-24 8:00:00","pressure":"998","radius10":"","speed":"18","strong":"热带风暴","movespeed":"15","radius12":"","power":"8","lng":"141.10","movedirection":"西北西","lat":"14.60","radius7":"250|220|200|180"},{"time":"2021-9-24 14:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"20","radius12":"","power":"9","lng":"140.40","movedirection":"北西","lat":"15.10","radius7":"300|250|220|200"},{"time":"2021-9-24 17:00:00","pressure":"990","radius10":"","speed":"23","strong":"热带风暴","movespeed":"15","radius12":"","power":"9","lng":"140.00","movedirection":"北西","lat":"15.40","radius7":"300|250|220|200"},{"time":"2021-9-24 20:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"16","radius12":"","power":"10","lng":"139.60","movedirection":"北西","lat":"15.70","radius7":"320|320|260|260"},{"time":"2021-9-25 2:00:00","pressure":"982","radius10":"100|100|120|120","speed":"28","strong":"强热带风暴","movespeed":"15","radius12":"","power":"10","lng":"138.90","movedirection":"北西","lat":"16.50","radius7":"320|320|260|260"},{"time":"2021-9-25 5:00:00","pressure":"980","radius10":"100|100|120|120","speed":"30","strong":"强热带风暴","movespeed":"12","radius12":"","power":"11","lng":"138.20","movedirection":"北北西","lat":"17.00","radius7":"320|320|260|260"},{"time":"2021-9-25 8:00:00","pressure":"975","radius10":"100|100|120|120","speed":"33","strong":"台风","movespeed":"11","radius12":"","power":"12","lng":"138.10","movedirection":"北北西","lat":"17.10","radius7":"320|320|260|260"},{"time":"2021-9-25 14:00:00","pressure":"955","radius10":"180|160|180|200","speed":"42","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.60","radius7":"320|300|320|350"},{"time":"2021-9-25 17:00:00","pressure":"950","radius10":"180|160|180|200","speed":"45","strong":"强台风","movespeed":"10","radius12":"100|80|100|120","power":"14","lng":"137.70","movedirection":"北北西","lat":"17.80","radius7":"320|300|320|350"},{"time":"2021-9-25 20:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.60","movedirection":"北北西","lat":"18.10","radius7":"320|300|320|350"},{"time":"2021-9-26 2:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.50","radius7":"320|300|320|350"},{"time":"2021-9-26 5:00:00","pressure":"940","radius10":"180|180|180|200","speed":"50","strong":"强台风","movespeed":"10","radius12":"100|100|100|120","power":"15","lng":"137.00","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 8:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.80","movedirection":"北北西","lat":"18.70","radius7":"320|300|320|350"},{"time":"2021-9-26 14:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"5","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北","lat":"18.80","radius7":"320|300|320|350"},{"time":"2021-9-26 17:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"3","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"18.90","radius7":"320|300|320|350"},{"time":"2021-9-26 20:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"4","radius12":"100|100|100|120","power":"17","lng":"136.70","movedirection":"北北西","lat":"19.00","radius7":"320|300|320|350"},{"time":"2021-9-27 2:00:00","pressure":"920","radius10":"180|180|180|200","speed":"60","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"17","lng":"136.80","movedirection":"北西","lat":"19.30","radius7":"320|300|320|350"},{"time":"2021-9-27 5:00:00","pressure":"930","radius10":"180|180|180|200","speed":"55","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 8:00:00","pressure":"935","radius10":"180|180|180|200","speed":"52","strong":"超强台风","movespeed":"6","radius12":"100|100|100|120","power":"16","lng":"136.70","movedirection":"北北西","lat":"19.60","radius7":"320|300|320|350"},{"time":"2021-9-27 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"7","radius12":"80|70|70|70","power":"16","lng":"136.60","movedirection":"北西","lat":"19.90","radius7":"320|300|320|350"},{"time":"2021-9-27 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.50","movedirection":"北西","lat":"20.00","radius7":"350|300|320|350"},{"time":"2021-9-27 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"8","radius12":"80|70|70|70","power":"16","lng":"136.40","movedirection":"北西","lat":"20.20","radius7":"350|300|320|350"},{"time":"2021-9-28 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"11","radius12":"80|70|70|70","power":"16","lng":"136.30","movedirection":"北西","lat":"20.40","radius7":"350|300|320|350"},{"time":"2021-9-28 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"12","radius12":"80|70|70|70","power":"16","lng":"136.20","movedirection":"北北西","lat":"20.60","radius7":"350|300|320|350"},{"time":"2021-9-28 8:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"136.20","movedirection":"北北西","lat":"20.90","radius7":"350|300|320|350"},{"time":"2021-9-28 14:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"12","radius12":"80|70|70|70","power":"15","lng":"135.80","movedirection":"北北西","lat":"21.50","radius7":"350|300|320|350"},{"time":"2021-9-28 17:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.70","movedirection":"北北西","lat":"21.70","radius7":"350|300|320|350"},{"time":"2021-9-28 20:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"13","radius12":"80|70|70|70","power":"15","lng":"135.40","movedirection":"北北西","lat":"22.00","radius7":"350|300|320|350"},{"time":"2021-9-29 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"14","radius12":"80|70|70|70","power":"16","lng":"135.60","movedirection":"北","lat":"22.70","radius7":"350|300|320|350"},{"time":"2021-9-29 5:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北","lat":"22.80","radius7":"350|300|320|350"},{"time":"2021-9-29 8:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"15","radius12":"80|70|70|70","power":"16","lng":"135.30","movedirection":"北","lat":"23.40","radius7":"350|300|320|350"},{"time":"2021-9-29 14:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"17","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.20","radius7":"350|300|320|350"},{"time":"2021-9-29 17:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.40","movedirection":"北北东","lat":"24.50","radius7":"350|300|320|350"},{"time":"2021-9-29 20:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"20","radius12":"80|70|70|70","power":"16","lng":"135.50","movedirection":"北北东","lat":"24.80","radius7":"350|300|320|350"},{"time":"2021-9-30 2:00:00","pressure":"935","radius10":"150|120|120|120","speed":"52","strong":"超强台风","movespeed":"22","radius12":"80|70|70|70","power":"16","lng":"135.80","movedirection":"北北东","lat":"25.80","radius7":"350|300|320|350"},{"time":"2021-9-30 5:00:00","pressure":"940","radius10":"150|120|120|120","speed":"50","strong":"强台风","movespeed":"18","radius12":"80|70|70|70","power":"15","lng":"136.10","movedirection":"北北东","lat":"26.20","radius7":"350|300|320|350"},{"pressure":"945","radius10":"150|120|120|120","speed":"48","radius12":"80|70|70|70","lng":"136.40","jl":" \u201c蒲公英\u201d将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分)","radius7":"350|300|320|350","time":"2021-9-30 8:00:00","strong":"强台风","movespeed":"23","power":"15","movedirection":"北北东","ckposition":" 距离日本东京南偏西方向约1060公里","lat":"26.60"}] - * enname : Mindulle - */ - - private String endtime; - private String centerlng; - private String starttime; - private String tfid; - private String isactive; - private String centerlat; - private String name; - private String warnlevel; - private String enname; - private List land; - private List points; - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime; - } - - public String getCenterlng() { - return centerlng; - } - - public void setCenterlng(String centerlng) { - this.centerlng = centerlng; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getIsactive() { - return isactive; - } - - public void setIsactive(String isactive) { - this.isactive = isactive; - } - - public String getCenterlat() { - return centerlat; - } - - public void setCenterlat(String centerlat) { - this.centerlat = centerlat; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getWarnlevel() { - return warnlevel; - } - - public void setWarnlevel(String warnlevel) { - this.warnlevel = warnlevel; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - - public List getLand() { - return land; - } - - public void setLand(List land) { - this.land = land; - } - - public static class LandBan { - /** - * landaddress : 朱家尖镇 - * strong : 强台风 - * lng : 122.39 - * lat : 29.83 - * info : “灿鸿”11日16时40分前后登陆浙江舟山市朱家尖镇 - * landtime : 2015/7/11 16:40:00 - */ - - private String landaddress; - private String strong; - private Double lng; - private Double lat; - private String info; - private String landtime; - - public String getLandaddress() { - return landaddress; - } - - public void setLandaddress(String landaddress) { - this.landaddress = landaddress; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getInfo() { - return info; - } - - public void setInfo(String info) { - this.info = info; - } - - public String getLandtime() { - return landtime; - } - - public void setLandtime(String landtime) { - this.landtime = landtime; - } - } - - public List getPoints() { - return points; - } - - public void setPoints(List points) { - this.points = points; - } - - public static class PointsBean { - /** - * time : 2021-9-23 20:00:00 - * pressure : 998 - * radius10 : - * speed : 18 - * strong : 热带风暴 - * movespeed : 20 - * radius12 : - * power : 8 - * lng : 143.30 - * movedirection : 西北西 - * lat : 13.80 - * radius7 : 250|220|200|180 - * jl : “蒲公英”将以每小时23公里左右的速度向北偏东方向移动,强度变化不大。 (下次更新时间为30日14时30分) - * ckposition : 距离日本东京南偏西方向约1060公里 - */ - - private String time; - private String pressure; - private String radius10; - private String speed; - private String strong; - private String movespeed; - private String radius12; - private String power; - private Double lng; - private String movedirection; - private Double lat; - private String radius7; - private String jl; - private String ckposition; - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getRadius12() { - return radius12; - } - - public void setRadius12(String radius12) { - this.radius12 = radius12; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public Double getLng() { - return lng; - } - - public void setLng(Double lng) { - this.lng = lng; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getJl() { - return jl; - } - - public void setJl(String jl) { - this.jl = jl; - } - - public String getCkposition() { - return ckposition; - } - - public void setCkposition(String ckposition) { - this.ckposition = ckposition; - } - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java deleted file mode 100644 index e293e8d..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/remote/TyphoonModel.java +++ /dev/null @@ -1,237 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方台风数据模型 - * - * @author a203 - */ -public class TyphoonModel { - - /** - * showapi_res_error : - * showapi_fee_num : 1 - * showapi_res_code : 0 - * showapi_res_id : 61554fbe0de376d03494057c - * showapi_res_body : {"ret_code":0,"list":[{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}]} - */ - - private String showapi_res_error; - private int showapi_fee_num; - private int showapi_res_code; - private String showapi_res_id; - private ShowapiResBodyBean showapi_res_body; - - public String getShowapi_res_error() { - return showapi_res_error; - } - - public void setShowapi_res_error(String showapi_res_error) { - this.showapi_res_error = showapi_res_error; - } - - public int getShowapi_fee_num() { - return showapi_fee_num; - } - - public void setShowapi_fee_num(int showapi_fee_num) { - this.showapi_fee_num = showapi_fee_num; - } - - public int getShowapi_res_code() { - return showapi_res_code; - } - - public void setShowapi_res_code(int showapi_res_code) { - this.showapi_res_code = showapi_res_code; - } - - public String getShowapi_res_id() { - return showapi_res_id; - } - - public void setShowapi_res_id(String showapi_res_id) { - this.showapi_res_id = showapi_res_id; - } - - public ShowapiResBodyBean getShowapi_res_body() { - return showapi_res_body; - } - - public void setShowapi_res_body(ShowapiResBodyBean showapi_res_body) { - this.showapi_res_body = showapi_res_body; - } - - public static class ShowapiResBodyBean { - /** - * ret_code : 0 - * list : [{"pressure":"945","tfid":"202116","radius10":"150","speed":"48","lng":"136.40","radius7":"350","time":"2021-09-30 08:00:00","movespeed":"23","strong":"强台风","name":"蒲公英","power":"15","movedirection":"北北东","lat":"26.60","enname":"Mindulle"}] - */ - - private int ret_code; - private List list; - - public int getRet_code() { - return ret_code; - } - - public void setRet_code(int ret_code) { - this.ret_code = ret_code; - } - - public List getList() { - return list; - } - - public void setList(List list) { - this.list = list; - } - - public static class ListBean { - /** - * pressure : 945 - * tfid : 202116 - * radius10 : 150 - * speed : 48 - * lng : 136.40 - * radius7 : 350 - * time : 2021-09-30 08:00:00 - * movespeed : 23 - * strong : 强台风 - * name : 蒲公英 - * power : 15 - * movedirection : 北北东 - * lat : 26.60 - * enname : Mindulle - */ - - private String pressure; - private String tfid; - private String radius10; - private String speed; - private String lng; - private String radius7; - private String time; - private String movespeed; - private String strong; - private String name; - private String power; - private String movedirection; - private String lat; - private String enname; - - public String getPressure() { - return pressure; - } - - public void setPressure(String pressure) { - this.pressure = pressure; - } - - public String getTfid() { - return tfid; - } - - public void setTfid(String tfid) { - this.tfid = tfid; - } - - public String getRadius10() { - return radius10; - } - - public void setRadius10(String radius10) { - this.radius10 = radius10; - } - - public String getSpeed() { - return speed; - } - - public void setSpeed(String speed) { - this.speed = speed; - } - - public String getLng() { - return lng; - } - - public void setLng(String lng) { - this.lng = lng; - } - - public String getRadius7() { - return radius7; - } - - public void setRadius7(String radius7) { - this.radius7 = radius7; - } - - public String getTime() { - return time; - } - - public void setTime(String time) { - this.time = time; - } - - public String getMovespeed() { - return movespeed; - } - - public void setMovespeed(String movespeed) { - this.movespeed = movespeed; - } - - public String getStrong() { - return strong; - } - - public void setStrong(String strong) { - this.strong = strong; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPower() { - return power; - } - - public void setPower(String power) { - this.power = power; - } - - public String getMovedirection() { - return movedirection; - } - - public void setMovedirection(String movedirection) { - this.movedirection = movedirection; - } - - public String getLat() { - return lat; - } - - public void setLat(String lat) { - this.lat = lat; - } - - public String getEnname() { - return enname; - } - - public void setEnname(String enname) { - this.enname = enname; - } - } - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java deleted file mode 100644 index daaed2f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/LandPoint.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风登陆点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_land_point") -public class LandPoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风登陆点 - */ - @TableField("LAND_ADDRESS") - private String landAddress; - - /** - * 台风登陆时间 - */ - @TableField("LAND_TIME") - private String landTime; - - /** - * 台风类型-热带风暴/强台风... - */ - @TableField("TYPE") - private String type; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 台风登陆细节 - */ - @TableField("INFO") - private String info; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java deleted file mode 100644 index d8dad80..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/RoutePoint.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风移动点数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_route_point") -public class RoutePoint extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - *

- * type = IdType.AUTO 是数据库自增 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - - /** - * 12级风力影响半径 - */ - @TableField("RADIUS_12") - private String radius12; - - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - - /** - * 台风路线预测 - */ - @TableField("ROUTE_PREDICTION") - private String routePrediction; - - /** - * 中心位置 - */ - @TableField("CENTER_POSITION") - private String centerPosition; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java deleted file mode 100644 index 2a88897..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/Typhoon.java +++ /dev/null @@ -1,101 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风列表数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_list") -public class Typhoon extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - /** - * 经度 - */ - @TableField("LNG") - private Double lng; - /** - * 纬度 - */ - @TableField("LAT") - private Double lat; - /** - * 台风风力等级描述 - */ - @TableField("TYPHOON_TYPE") - private String typhoonType; - /** - * 台风中心气压,单位【百帕】 - */ - @TableField("CENTER_PRESSURE") - private String centerPressure; - /** - * 风速,单位【米/每秒】 - */ - @TableField("SPEED") - private String speed; - /** - * 风力,单位【级】 - */ - @TableField("POWER") - private Integer power; - /** - * 台风整体移动速度,单位【公里/小时】 - */ - @TableField("MOVE_SPEED") - private String moveSpeed; - /** - * 台风未来移动方向 - */ - @TableField("MOVE_DIRECTION") - private String moveDirection; - /** - * 10级风力影响半径 - */ - @TableField("RADIUS_10") - private String radius10; - /** - * 7级风力影响半径 - */ - @TableField("RADIUS_7") - private String radius7; - /** - * 数据更新时间 - */ - @TableField("TIME") - private String time; - /** - * 台风是否已消散,1-未消散,0-已消散 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java b/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java deleted file mode 100644 index 6a64023..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/model/sql/TyphoonDetail.java +++ /dev/null @@ -1,79 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * 台风详情数据库模型 - * - * @author a203 - */ -@Data -@TableName("tf_detail") -public class TyphoonDetail extends Model { - private static final long serialVersionUID = 1L; - - /** - * 台风数据库主键 - */ - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * 台风ID - */ - @TableField("TYPHOON_ID") - private String typhoonId; - - /** - * 台风中文代号 - */ - @TableField("NAME") - private String name; - - /** - * 台风英文代号 - */ - @TableField("ENG_NAME") - private String engName; - - /** - * 台风告警级别 - */ - @TableField("WARN_LEVEL") - private String warnLevel; - - /** - * 台风中心经度 - */ - @TableField("CENTER_LNG") - private Double centerLng; - - /** - * 台风中心纬度 - */ - @TableField("CENTER_LAT") - private Double centerLat; - - /** - * 台风开始时间 - */ - @TableField("START_TIME") - private String startTime; - - /** - * 台风结束时间 - */ - @TableField("END_TIME") - private String endTime; - - /** - * 台风状态 - */ - @TableField("IS_ACTIVE") - private String isActive; -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java deleted file mode 100644 index ae8ccb4..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ILandPointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.LandPoint; - -/** - * 台风登陆点数据信息 服务类 - * - * @author a203 - */ -public interface ILandPointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java deleted file mode 100644 index e4c225f..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/IRoutePointService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.RoutePoint; - -/** - * 台风移动点数据信息 服务类 - * - * @author a203 - */ -public interface IRoutePointService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java deleted file mode 100644 index 8db2e65..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonDetailService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; - -/** - * 台风详情数据信息 服务类 - * - * @author a203 - */ -public interface ITyphoonDetailService extends IService { - -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java index 2daf133..daf700a 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/ITyphoonService.java @@ -1,9 +1,7 @@ package com.casic.missiles.modular.system.service; -import com.baomidou.mybatisplus.extension.service.IService; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.sql.Typhoon; import java.util.List; @@ -12,20 +10,13 @@ * * @author a203 */ -public interface ITyphoonService extends IService { +public interface ITyphoonService { /** - * 保存台风列表 - */ - void saveTyphoon(); - - /***开放接口给内网服务器使用**************************************/ - - /** - * 查询台风列表 + * 台风列表 * * @return {@link List } */ - List currentTyphoonList(); + List saveTyphoon(); /** * 查询台风详情 @@ -33,5 +24,5 @@ * @param typhoonId 台风ID * @return {@link TyphoonDetailDTO} */ - TyphoonDetailDTO typhoonDetail(String typhoonId); + TyphoonDetailDTO updateTyphoon(String typhoonId); } diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java deleted file mode 100644 index 5cff515..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/LandPointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.LandPointMapper; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.service.ILandPointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class LandPointServiceImpl extends ServiceImpl implements ILandPointService { - - public LandPointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java index 4416594..fa8caab 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/OceanServiceImpl.java @@ -3,7 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.OceanDetailDTO; -import com.casic.missiles.modular.system.model.remote.OceanDetailModel; +import com.casic.missiles.modular.system.model.OceanDetailModel; import com.casic.missiles.modular.system.service.IOceanService; import com.casic.missiles.modular.system.utils.HttpRequestHelper; import org.springframework.stereotype.Service; diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java deleted file mode 100644 index 7fb4bdd..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/RoutePointServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.RoutePointMapper; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.service.IRoutePointService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class RoutePointServiceImpl extends ServiceImpl implements IRoutePointService { - - public RoutePointServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java deleted file mode 100644 index 128df09..0000000 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonDetailServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonDetailMapper; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; -import org.springframework.stereotype.Service; - -/** - * 台风数据信息 服务实现类 - * - * @author a203 - */ - -@Service -public class TyphoonDetailServiceImpl extends ServiceImpl implements ITyphoonDetailService { - - public TyphoonDetailServiceImpl() { - - } -} diff --git a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java index 8e73254..523c6d2 100644 --- a/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java +++ b/casic-server/src/main/java/com/casic/missiles/modular/system/service/impl/TyphoonServiceImpl.java @@ -2,20 +2,10 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.TypeReference; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.TyphoonMapper; import com.casic.missiles.modular.system.dto.TyphoonDTO; import com.casic.missiles.modular.system.dto.TyphoonDetailDTO; -import com.casic.missiles.modular.system.model.remote.TyphoonDetailModel; -import com.casic.missiles.modular.system.model.remote.TyphoonModel; -import com.casic.missiles.modular.system.model.sql.LandPoint; -import com.casic.missiles.modular.system.model.sql.RoutePoint; -import com.casic.missiles.modular.system.model.sql.Typhoon; -import com.casic.missiles.modular.system.model.sql.TyphoonDetail; -import com.casic.missiles.modular.system.service.ILandPointService; -import com.casic.missiles.modular.system.service.IRoutePointService; -import com.casic.missiles.modular.system.service.ITyphoonDetailService; +import com.casic.missiles.modular.system.model.TyphoonDetailModel; +import com.casic.missiles.modular.system.model.TyphoonModel; import com.casic.missiles.modular.system.service.ITyphoonService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; @@ -32,171 +22,58 @@ */ @Slf4j @Service -public class TyphoonServiceImpl extends ServiceImpl implements ITyphoonService { +public class TyphoonServiceImpl implements ITyphoonService { private static final String SUCCESS_CODE = "0"; - private final ITyphoonDetailService detailService; - private final ILandPointService landPointService; - private final IRoutePointService routePointService; + public TyphoonServiceImpl() { - public TyphoonServiceImpl(ITyphoonDetailService detailService, - ILandPointService landPointService, - IRoutePointService routePointService) { - this.detailService = detailService; - this.landPointService = landPointService; - this.routePointService = routePointService; } /** * 保存台风列表 */ @Override - public void saveTyphoon() { + public List saveTyphoon() { /** - * 获取台风接口数据 + * 获取第三方台风接口数据 * */ String res = HttpRequestHelper.doGet(Constant.TYPHOON_LIST + System.currentTimeMillis()); if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { TyphoonModel remoteData = JSON.parseObject(res, new TypeReference() { }); List beans = remoteData.getShowapi_res_body().getList(); - for (TyphoonModel.ShowapiResBodyBean.ListBean data : beans) { - Typhoon entity = new Typhoon(); - entity.setTyphoonId(data.getTfid()); - entity.setName(data.getName()); - entity.setEngName(data.getEnname()); - entity.setLng(Double.valueOf(data.getLng())); - entity.setLat(Double.valueOf(data.getLat())); - entity.setTyphoonType(data.getStrong()); - entity.setCenterPressure(data.getPressure()); - entity.setSpeed(data.getSpeed()); - entity.setPower(Integer.valueOf(data.getPower())); - entity.setMoveSpeed(data.getMovespeed()); - entity.setMoveDirection(data.getMovedirection()); - entity.setRadius7(data.getRadius7()); - entity.setRadius10(data.getRadius10()); - entity.setTime(data.getTime()); - entity.setIsActive("1"); - this.baseMapper.insert(entity); + + List dtoList = new ArrayList<>(); + for (TyphoonModel.ShowapiResBodyBean.ListBean bean : beans) { + dtoList.add(new TyphoonDTO(bean)); } + return dtoList; } - updateTyphoonDetail(); + return null; } /** * 更新台风详情 */ - private void updateTyphoonDetail() { - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - /** - * 获取台风接口数据 - * */ - String res = HttpRequestHelper.doGet( - Constant.TYPHOON_DETAIL.replace("ID", typhoon.getTyphoonId()) - + System.currentTimeMillis()); - if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { - TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { - }); - TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - - String typhoonId = objBean.getTfid(); - /** - * 保存台风基本情况存到数据库 - * */ - TyphoonDetail detail = new TyphoonDetail(); - detail.setTyphoonId(objBean.getTfid()); - detail.setName(objBean.getName()); - detail.setEngName(objBean.getEnname()); - detail.setWarnLevel(objBean.getWarnlevel()); - detail.setCenterLng(Double.parseDouble(objBean.getCenterlng())); - detail.setCenterLat(Double.parseDouble(objBean.getCenterlat())); - detail.setStartTime(objBean.getStarttime()); - detail.setEndTime(objBean.getEndtime()); - detail.setIsActive(objBean.getIsactive()); - QueryWrapper queryWrapper = new QueryWrapper().eq("TYPHOON_ID", typhoonId); - detailService.saveOrUpdate(detail, queryWrapper); - - /** - * 更新台风列表台风状态 - * */ - typhoon.setIsActive(objBean.getIsactive()); - saveOrUpdate(typhoon, new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - - /** - * 保存台风登陆情况存到数据库 - * */ - List landBeans = objBean.getLand(); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.LandBan bean : landBeans) { - LandPoint landPoint = new LandPoint(); - - landPoint.setTyphoonId(typhoonId); - landPoint.setLandAddress(bean.getLandaddress()); - landPoint.setLandTime(bean.getLandtime()); - landPoint.setType(bean.getStrong()); - landPoint.setLng(bean.getLng()); - landPoint.setLat(bean.getLat()); - landPoint.setInfo(bean.getInfo()); - landPointService.save(landPoint); - } - - /** - * 保存台风移动路径存到数据库 - * */ - List routePoints = objBean.getPoints(); - routePointService.remove(new QueryWrapper().eq("TYPHOON_ID", typhoonId)); - for (TyphoonDetailModel.ShowapiResBodyBean.ObjBean.PointsBean point : routePoints) { - RoutePoint routePoint = new RoutePoint(); - - routePoint.setTyphoonId(typhoonId); - routePoint.setTime(point.getTime()); - routePoint.setCenterPressure(point.getPressure()); - routePoint.setSpeed(point.getSpeed()); - routePoint.setTyphoonType(point.getStrong()); - routePoint.setMoveSpeed(point.getMovespeed()); - routePoint.setPower(Integer.parseInt(point.getPower())); - routePoint.setMoveDirection(point.getMovedirection()); - routePoint.setLng(point.getLng()); - routePoint.setLat(point.getLat()); - routePoint.setRadius12(point.getRadius12()); - routePoint.setRadius10(point.getRadius10()); - routePoint.setRadius7(point.getRadius7()); - routePoint.setRoutePrediction(point.getJl()); - routePoint.setCenterPosition(point.getCkposition()); - routePointService.save(routePoint); - } - } - } - } - @Override - public List currentTyphoonList() { - List typhoonList = new ArrayList<>(); - //筛选出还未消散的台风并更新详情 - List typhoons = this.baseMapper.selectCurrentTyphoon(); - for (Typhoon typhoon : typhoons) { - typhoonList.add(new TyphoonDTO(typhoon)); - } - return typhoonList; - } + public TyphoonDetailDTO updateTyphoon(String typhoonId) { + /** + * 获取台风接口数据 + * */ + String res = HttpRequestHelper.doGet( + Constant.TYPHOON_DETAIL.replace("ID", typhoonId) + + System.currentTimeMillis()); + if (SUCCESS_CODE.equals(HttpRequestHelper.getTyphoonCode(res))) { + TyphoonDetailModel remoteData = JSON.parseObject(res, new TypeReference() { + }); + TyphoonDetailModel.ShowapiResBodyBean.ObjBean objBean = remoteData.getShowapi_res_body().getObj(); - @Override - public TyphoonDetailDTO typhoonDetail(String typhoonId) { - TyphoonDetail typhoonDetail = detailService.getOne( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - if (typhoonDetail == null) { - return null; + List landBeans = objBean.getLand(); + + List routePoints = objBean.getPoints(); + return new TyphoonDetailDTO(objBean, landBeans, routePoints); } - log.info(JSON.toJSONString(typhoonDetail)); - List landPoints = landPointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - List routePoints = routePointService.list( - new QueryWrapper().eq("TYPHOON_ID", typhoonId) - ); - return new TyphoonDetailDTO(typhoonDetail, landPoints, routePoints); + return null; } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java index b311d5c..6736058 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/controller/ShipController.java @@ -3,7 +3,6 @@ import com.casic.missiles.core.base.controller.BaseController; import com.casic.missiles.model.response.ResponseData; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.service.IAisLogService; import com.casic.missiles.modular.system.service.IShipService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @@ -22,11 +21,9 @@ public class ShipController extends BaseController { private final IShipService shipService; - private final IAisLogService logService; - public ShipController(IShipService shipService, IAisLogService logService) { + public ShipController(IShipService shipService) { this.shipService = shipService; - this.logService = logService; } /** @@ -38,13 +35,4 @@ List ships = shipService.shipsInCircle(rgn, age); return ResponseData.success(ships); } - - /** - * AIS调用记录 - */ - @GetMapping(value = "/log") - @ResponseBody - public Object log() { - return ResponseData.success(logService.count()); - } } diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java deleted file mode 100644 index d4103fd..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dao/AisLogMapper.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.dao; - -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用次数 Mapper 接口 - * - * @author a203 - */ -public interface AisLogMapper extends BaseMapper { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java index c4d9cbf..92d1eb4 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/dto/ShipDTO.java @@ -1,6 +1,6 @@ package com.casic.missiles.modular.system.dto; -import com.casic.missiles.modular.system.model.remote.ShipModel; +import com.casic.missiles.modular.system.model.ShipModel; import lombok.Data; import java.text.SimpleDateFormat; diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java new file mode 100644 index 0000000..53fdd3c --- /dev/null +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/ShipModel.java @@ -0,0 +1,251 @@ +package com.casic.missiles.modular.system.model; + +import java.util.List; + +/** + * 第三方AIS数据模型 + * + * @author a203 + */ +public class ShipModel { + + /** + * code : 0 + * count : 7 + * message : 成功 + * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] + */ + + private String code; + private int count; + private String message; + private List data; + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * g : 3EQK6 + * y : 70 + * a : 10884867 + * n : 68125760 + * i : 2030707 + * t : 1632903145 + * e : HMM ROTTERDAM + * m : 351246000 + * o : 9868338 + * f : PAN + * l : 400 + * c : 1872 + * s : 163 + * h : 189 + * v : 0 + * b : 62 + * r : 10-15 19:00 + * p : EGSUE + * d : 154 + */ + + private String g; + private String y; + private int a; + private int n; + private String i; + private int t; + private String e; + private String m; + private String o; + private String f; + private int l; + private int c; + private int s; + private int h; + private String v; + private int b; + private String r; + private String p; + private int d; + + public String getG() { + return g; + } + + public void setG(String g) { + this.g = g; + } + + public String getY() { + return y; + } + + public void setY(String y) { + this.y = y; + } + + public int getA() { + return a; + } + + public void setA(int a) { + this.a = a; + } + + public int getN() { + return n; + } + + public void setN(int n) { + this.n = n; + } + + public String getI() { + return i; + } + + public void setI(String i) { + this.i = i; + } + + public int getT() { + return t; + } + + public void setT(int t) { + this.t = t; + } + + public String getE() { + return e; + } + + public void setE(String e) { + this.e = e; + } + + public String getM() { + return m; + } + + public void setM(String m) { + this.m = m; + } + + public String getO() { + return o; + } + + public void setO(String o) { + this.o = o; + } + + public String getF() { + return f; + } + + public void setF(String f) { + this.f = f; + } + + public int getL() { + return l; + } + + public void setL(int l) { + this.l = l; + } + + public int getC() { + return c; + } + + public void setC(int c) { + this.c = c; + } + + public int getS() { + return s; + } + + public void setS(int s) { + this.s = s; + } + + public int getH() { + return h; + } + + public void setH(int h) { + this.h = h; + } + + public String getV() { + return v; + } + + public void setV(String v) { + this.v = v; + } + + public int getB() { + return b; + } + + public void setB(int b) { + this.b = b; + } + + public String getR() { + return r; + } + + public void setR(String r) { + this.r = r; + } + + public String getP() { + return p; + } + + public void setP(String p) { + this.p = p; + } + + public int getD() { + return d; + } + + public void setD(int d) { + this.d = d; + } + } +} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java deleted file mode 100644 index 69ab8b5..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/remote/ShipModel.java +++ /dev/null @@ -1,251 +0,0 @@ -package com.casic.missiles.modular.system.model.remote; - -import java.util.List; - -/** - * 第三方AIS数据模型 - * - * @author a203 - */ -public class ShipModel { - - /** - * code : 0 - * count : 7 - * message : 成功 - * data : [{"g":"3EQK6","y":"70","a":10884867,"n":68125760,"i":"2030707","t":1632903145,"e":"HMM ROTTERDAM","m":"351246000","o":"9868338","f":"PAN","l":400,"c":1872,"s":163,"h":189,"v":"0","b":62,"r":"10-15 19:00","p":"EGSUE","d":154}] - */ - - private String code; - private int count; - private String message; - private List data; - - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public int getCount() { - return count; - } - - public void setCount(int count) { - this.count = count; - } - - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public static class DataBean { - /** - * g : 3EQK6 - * y : 70 - * a : 10884867 - * n : 68125760 - * i : 2030707 - * t : 1632903145 - * e : HMM ROTTERDAM - * m : 351246000 - * o : 9868338 - * f : PAN - * l : 400 - * c : 1872 - * s : 163 - * h : 189 - * v : 0 - * b : 62 - * r : 10-15 19:00 - * p : EGSUE - * d : 154 - */ - - private String g; - private String y; - private int a; - private int n; - private String i; - private int t; - private String e; - private String m; - private String o; - private String f; - private int l; - private int c; - private int s; - private int h; - private String v; - private int b; - private String r; - private String p; - private int d; - - public String getG() { - return g; - } - - public void setG(String g) { - this.g = g; - } - - public String getY() { - return y; - } - - public void setY(String y) { - this.y = y; - } - - public int getA() { - return a; - } - - public void setA(int a) { - this.a = a; - } - - public int getN() { - return n; - } - - public void setN(int n) { - this.n = n; - } - - public String getI() { - return i; - } - - public void setI(String i) { - this.i = i; - } - - public int getT() { - return t; - } - - public void setT(int t) { - this.t = t; - } - - public String getE() { - return e; - } - - public void setE(String e) { - this.e = e; - } - - public String getM() { - return m; - } - - public void setM(String m) { - this.m = m; - } - - public String getO() { - return o; - } - - public void setO(String o) { - this.o = o; - } - - public String getF() { - return f; - } - - public void setF(String f) { - this.f = f; - } - - public int getL() { - return l; - } - - public void setL(int l) { - this.l = l; - } - - public int getC() { - return c; - } - - public void setC(int c) { - this.c = c; - } - - public int getS() { - return s; - } - - public void setS(int s) { - this.s = s; - } - - public int getH() { - return h; - } - - public void setH(int h) { - this.h = h; - } - - public String getV() { - return v; - } - - public void setV(String v) { - this.v = v; - } - - public int getB() { - return b; - } - - public void setB(int b) { - this.b = b; - } - - public String getR() { - return r; - } - - public void setR(String r) { - this.r = r; - } - - public String getP() { - return p; - } - - public void setP(String p) { - this.p = p; - } - - public int getD() { - return d; - } - - public void setD(int d) { - this.d = d; - } - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java deleted file mode 100644 index bac67bc..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/model/sql/AisLog.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.casic.missiles.modular.system.model.sql; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import com.baomidou.mybatisplus.extension.activerecord.Model; -import lombok.Data; - -/** - * @author a203 - */ -@Data -@TableName("ais_request_log") -public class AisLog extends Model { - private static final long serialVersionUID = 1L; - - @TableId(value = "ID", type = IdType.ASSIGN_ID) - private Long id; - - /** - * ais请求参数 - */ - @TableField("REQUEST_PARAM") - private String requestParam; - - /** - * ais返回数据 - */ - @TableField("RESPONSE") - private String response; - - /** - * 调用第三方ais接口时间 - */ - @TableField("REQUEST_TIME") - private String requestTime; -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java deleted file mode 100644 index cd1298d..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/IAisLogService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.casic.missiles.modular.system.service; - -import com.baomidou.mybatisplus.extension.service.IService; -import com.casic.missiles.modular.system.model.sql.AisLog; - -/** - * AIS调用记录 服务类 - * - * @author a203 - */ -public interface IAisLogService extends IService { - -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java deleted file mode 100644 index 9505b18..0000000 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/AisLogServiceImpl.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.casic.missiles.modular.system.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.casic.missiles.modular.system.dao.AisLogMapper; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; -import org.springframework.stereotype.Service; - -/** - * AIS调用记录 服务实现类 - * - * @author a203 - */ - -@Service -public class AisLogServiceImpl extends ServiceImpl implements IAisLogService { - - public AisLogServiceImpl() { - - } -} diff --git a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java index e6dcdd9..d477840 100644 --- a/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java +++ b/casic-ship/src/main/java/com/casic/missiles/modular/system/service/impl/ShipServiceImpl.java @@ -5,13 +5,10 @@ import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.TypeReference; import com.casic.missiles.modular.system.dto.ShipDTO; -import com.casic.missiles.modular.system.model.remote.ShipModel; -import com.casic.missiles.modular.system.model.sql.AisLog; -import com.casic.missiles.modular.system.service.IAisLogService; +import com.casic.missiles.modular.system.model.ShipModel; import com.casic.missiles.modular.system.service.IShipService; import com.casic.missiles.modular.system.utils.Constant; import com.casic.missiles.modular.system.utils.HttpRequestHelper; -import com.casic.missiles.modular.system.utils.TimeUtil; import okhttp3.Request; import org.springframework.stereotype.Service; @@ -28,10 +25,9 @@ public class ShipServiceImpl implements IShipService { private static final String SUCCESS_CODE = "0"; - private final IAisLogService logService; - public ShipServiceImpl(IAisLogService logService) { - this.logService = logService; + public ShipServiceImpl() { + } @Override @@ -65,13 +61,6 @@ String res = HttpRequestHelper.doPost(request); //先解析出code,根据code判断 if (SUCCESS_CODE.equals(getResponseCode(res))) { - //请求成功才保存ais访问记录 - AisLog aisLog = new AisLog(); - aisLog.setRequestParam(requestBody); - aisLog.setResponse(res); - aisLog.setRequestTime(TimeUtil.getCurrentTime()); - logService.save(aisLog); - ShipModel remoteData = JSON.parseObject(res, new TypeReference() { }); for (ShipModel.DataBean data : remoteData.getData()) { diff --git a/casic-web/pom.xml b/casic-web/pom.xml index a36cc14..6a2f7e9 100644 --- a/casic-web/pom.xml +++ b/casic-web/pom.xml @@ -112,11 +112,6 @@ - - com.casic - casic-job-quartz - 2.0.0.alpha - diff --git a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java index 499eedd..a90ac89 100644 --- a/casic-web/src/main/java/com/casic/missiles/CasicApplication.java +++ b/casic-web/src/main/java/com/casic/missiles/CasicApplication.java @@ -5,7 +5,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; import org.springframework.scheduling.annotation.EnableAsync; -import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.transaction.annotation.EnableTransactionManagement; /** @@ -18,7 +17,6 @@ @EnableTransactionManagement(proxyTargetClass = true) @EnableAsync @Slf4j -@EnableScheduling public class CasicApplication { public static void main(String[] args) { SpringApplication.run(CasicApplication.class, args);