| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texta += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texta += "出库流量暂无数据;"; |
| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texth += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texth += "出库流量暂无数据。"; |
| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texta += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texta += "出库流量暂无数据;"; |
| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texth += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texth += "出库流量暂无数据。"; |
| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texta += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texta += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texta += "出库流量暂无数据;"; |
| | |
| | | } else { |
| | | BigDecimal w = (BigDecimal) map.get(i).get("W"); |
| | | double W = w.doubleValue(); |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | if (W == 0.000) { |
| | | texth += "蓄水量暂无数据、"; |
| | | } else { |
| | | DecimalFormat df = new DecimalFormat("#0.00"); |
| | | texth += "蓄水量" + df.format(W) + "百万立方米、"; |
| | | } |
| | | } |
| | | if (map.get(i).get("OTQ") == null) { |
| | | texth += "出库流量暂无数据。"; |
| | |
| | | // //获取涨幅最大的信息 |
| | | // } |
| | | if (beginTime.equals(endTime)) { |
| | | } |
| | | else { |
| | | } else { |
| | | if (m1.size() != 0) { |
| | | Object maxKey = getMaxKey(m1); |
| | | String s1 = m1.get(maxKey).toString(); |
| | |
| | | } |
| | | String code = strArrays.substring(0, strArrays.length() - 1); |
| | | //水库水情预警信息 |
| | | List<Map<String, Object>> map = rsvrRService.selectskshi(egmd, edmd, timec, time,dateEnd,code); |
| | | List<Map<String, Object>> map = rsvrRService.selectskshi(egmd, edmd, timec, time, dateEnd, code); |
| | | //用来判断是否重复统计超警信息 |
| | | Map mnum = new HashMap(); |
| | | //定义list保存预警信息 |
| | |
| | | if (RZ == 0) { |
| | | texta += "库水位暂无数据、"; |
| | | } else { |
| | | texta += "库水位" + RZ + "米、"; |
| | | texta += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texta += "比昨日8时下降" + Math.abs(v) + "米、"; |
| | |
| | | if (RZ == 0) { |
| | | texth += "库水位暂无数据、"; |
| | | } else { |
| | | texth += "库水位" + RZ + "米、"; |
| | | texth += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texth += "比昨日8时下降" + Math.abs(v) + "米、"; |
| | |
| | | if (RZ == 0) { |
| | | texta += "库水位暂无数据、"; |
| | | } else { |
| | | texta += "库水位" + RZ + "米、"; |
| | | texta += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texta += "比昨日8时下降" + Math.abs(v) + "米、"; |
| | |
| | | if (RZ == 0) { |
| | | texth += "库水位暂无数据、"; |
| | | } else { |
| | | texth += "库水位" + RZ + "米、"; |
| | | texth += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texth += "比昨日8时下降" + Math.abs(v) + "米、"; |
| | |
| | | if (RZ == 0) { |
| | | texta += "库水位暂无数据、"; |
| | | } else { |
| | | texta += "库水位" + RZ + "米、"; |
| | | texta += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texta += "比昨日8时下降" + Math.abs(v) + "米、"; |
| | |
| | | if (RZ == 0) { |
| | | texth += "库水位暂无数据、"; |
| | | } else { |
| | | texth += "库水位" + RZ + "米、"; |
| | | texth += "库水位" + dfc.format(RZ) + "米、"; |
| | | } |
| | | if (v < 0) { |
| | | texth += "比昨日8时下降" + Math.abs(v) + "米、"; |