| | |
| | | <relativePath/> |
| | | </parent> |
| | | <!--打包成jar、war--> |
| | | <packaging>jar</packaging> |
| | | <packaging>war</packaging> |
| | | |
| | | <groupId>com</groupId> |
| | | <artifactId>yssh</artifactId> |
| | |
| | | private double vocsValue; |
| | | |
| | | private String id; |
| | | |
| | | @JsonIgnore |
| | | private Integer x; |
| | | |
| | | @JsonIgnore |
| | | private Integer y; |
| | | |
| | | @JsonIgnore |
| | | private double u; |
| | | |
| | | @JsonIgnore |
| | | private double v; |
| | | |
| | | @JsonIgnore |
| | | private String addr; |
| | | |
| | | private double windSpeed; |
| | | |
| | |
| | | public void setLat(double lat) { |
| | | this.lat = lat; |
| | | } |
| | | |
| | | public String getAddr() { |
| | | return addr; |
| | | } |
| | | |
| | | public void setAddr(String addr) { |
| | | this.addr = addr; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty(value = "最大值的ID") |
| | | private String maxId; |
| | | |
| | | @ApiModelProperty(value = "最大值的地名") |
| | | private String maxAddr; |
| | | |
| | | public Report() { |
| | | } |
| | | |
| | | public Report(String id, String name, double lon, double lat, double val, String time, double speed, String dir, double maxVal, double dis, String maxDir, int isSame, String maxId) { |
| | | public Report(String id, String name, double lon, double lat, double val, String time, double speed, |
| | | String dir, double maxVal, double dis, String maxDir, int isSame, String maxId, String maxAddr) { |
| | | this.id = id; |
| | | this.name = name; |
| | | this.lon = lon; |
| | |
| | | this.maxDir = maxDir; |
| | | this.isSame = isSame; |
| | | this.maxId = maxId; |
| | | this.maxAddr = maxAddr; |
| | | } |
| | | |
| | | /** |
| | |
| | | String maxId = (Integer.parseInt(strs[0]) / 10) + "_" + (Integer.parseInt(strs[1]) / 10); |
| | | |
| | | return new Report(wd.getSuYuanId(), wd.getLocationName(), c1.getX(), c1.getY(), wd.getValue(), time, |
| | | speed1, dir, maxVal, dis1, maxDir, isSame, maxId); |
| | | speed1, dir, maxVal, dis1, maxDir, isSame, maxId, suMax.getAddr()); |
| | | } |
| | | |
| | | public String getId() { |
| | |
| | | public void setMaxId(String maxId) { |
| | | this.maxId = maxId; |
| | | } |
| | | |
| | | public String getMaxAddr() { |
| | | return maxAddr; |
| | | } |
| | | |
| | | public void setMaxAddr(String maxAddr) { |
| | | this.maxAddr = maxAddr; |
| | | } |
| | | } |
| | |
| | | @Resource |
| | | private QxshMapper qxshMapper; |
| | | |
| | | @Resource |
| | | private SuYuanService suYuanService; |
| | | |
| | | private SimpleDateFormat ym = new SimpleDateFormat("yyyyMM%"); |
| | | |
| | | @Async("threadPoolTaskExecutor") |
| | |
| | | List<String> ids3d = CalculateUtils.aloneCrosswiseExtend(point, 50); |
| | | DistanceSuYuan suMax = suYuanMapper.getSuYuan500Max(wd.getTableName(), ids3d); |
| | | |
| | | String[] strs = suMax.getId().split("_"); |
| | | int x = Integer.parseInt(strs[0]) / 10; |
| | | int y = Integer.parseInt(strs[1]) / 10; |
| | | String addr = suYuanService.selectAddrByXY(x, y); |
| | | suMax.setAddr(addr); |
| | | |
| | | Report report = Report.calcReport(wd, suYuan, suMax); |
| | | report.setLastVal(lastVal); |
| | | |