| | |
| | | String years = strss[1].toString(); |
| | | //日 |
| | | String days = strss[2].toString(); |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时。"; |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时"; |
| | | //最新雨量值 |
| | | List<Map<String, Object>> map = regionWeightService.selectReM(beginTime, endTime); |
| | | List<Map<String, Object>> mapAll = regionWeightService.selectAll(); |
| | |
| | | }); |
| | | //拼接前3位降雨最大的区域 |
| | | double v3 = (double) Math.round(num * 10) / 10; |
| | | String text = "全市日平均降雨量:" + v3 + "(毫米)。 "; |
| | | String text = "全市日平均降雨量:" + v3 + "毫米。 "; |
| | | String text1 = "县市区平均降雨量前3位为: "; |
| | | String tx = ""; |
| | | for (int i = 0; i < entryList2.size(); i++) { |
| | |
| | | mapa.put("dyp", as); |
| | | listc.add(mapa); |
| | | if (i < 3) { |
| | | tx += station_name + "降雨量为:" + as + "(毫米),"; |
| | | tx += station_name + "降雨量为:" + as + "毫米,"; |
| | | } |
| | | } |
| | | |
| | |
| | | }); |
| | | for (int c = 0; c < listc.size(); c++) { |
| | | if (c < 3) { |
| | | text += listc.get(c).get("region").toString() + ":" + listc.get(c).get("dyp") + "(毫米),"; |
| | | text += listc.get(c).get("region").toString() + ":" + listc.get(c).get("dyp") + "毫米,"; |
| | | } |
| | | } |
| | | String a = "流域前三的为:" + text.substring(0, text.length() - 1) + "。"; |
| | |
| | | List<Map<String, Object>> lists = new ArrayList<>(); |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | String text = ""; |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时。"; |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时"; |
| | | //0-10降雨量范围 |
| | | List lista = new ArrayList<>(); |
| | | //10-25降雨量范围 |
| | |
| | | } else if (dyp > 250) { |
| | | listf.add(maps.get(i)); |
| | | } |
| | | text += stnm + "站" + dyp + "毫米,"; |
| | | if (i==0){ |
| | | text += addvnm+stnm + "站" + dyp + "毫米,"; |
| | | } |
| | | if (i==1){ |
| | | text += addvnm+stnm + "站" + dyp + "毫米次之,"; |
| | | } |
| | | if (i==2){ |
| | | text += addvnm+stnm + "站" + dyp + "毫米第三,"; |
| | | } |
| | | } else { |
| | | BigDecimal bigDecimaldyp = (BigDecimal) maps.get(i).get("dyp");//日雨量 |
| | | double dyp = bigDecimaldyp.doubleValue(); |
| | |
| | | if (maps.size() == 0) { |
| | | a = yday + "暂无降雨信息。"; |
| | | } else { |
| | | a = yday + "点降雨量前三为:" + text.substring(0, text.length() - 1) + "。"; |
| | | a = yday + "点最大降雨量为" + text.substring(0, text.length() - 1) + "。"; |
| | | } |
| | | map.put("text", a); |
| | | lists.add(map); |
| | |
| | | String years = strss[1].toString(); |
| | | //日 |
| | | String days = strss[2].toString(); |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时。"; |
| | | String yday = year + "月" + day + "日" + r + "时-" + years + "月" + days + "日" + rs + "时"; |
| | | String ss = regionWeightService.selectCodeM(); |
| | | String[] split = ss.split(","); |
| | | String strArrays = ""; |
| | |
| | | }); |
| | | //拼接前3位降雨最大的区域 |
| | | double v3 = (double) Math.round(num * 10) / 10; |
| | | String text = "全市日平均降雨量:" + v3 + "(毫米)。 "; |
| | | String text = "全市日平均降雨量:" + v3 + "毫米。 "; |
| | | String text1 = "县市区平均降雨量前3位为: "; |
| | | String tx = ""; |
| | | for (int i = 0; i < entryList2.size(); i++) { |
| | |
| | | mapa.put("dyp", as); |
| | | listc.add(mapa); |
| | | if (i < 3) { |
| | | tx += station_name + "降雨量为:" + as + "(毫米),"; |
| | | tx += station_name + "降雨量为:" + as + "毫米,"; |
| | | } |
| | | } |
| | | |