| | |
| | | tableMap.put("totalCap", tbAttResStagChar==null || tbAttResStagChar.getTotalCap()==null?"":WordUtil.removeTrailingZero(tbAttResStagChar.getTotalCap().toString())); |
| | | tableMap.put("desFlStag", tbAttResStagChar==null || tbAttResStagChar.getDesFlStag()==null?"":tbAttResStagChar.getDesFlStag()); |
| | | tableMap.put("flprCap", tbAttResStagChar==null || tbAttResStagChar.getFlprCap()==null?"":WordUtil.removeTrailingZero(tbAttResStagChar.getFlprCap().toString())); |
| | | tableMap.put("flConTopStag", tbAttResStagChar==null || tbAttResStagChar.getFlConTopStag()==null?"":tbAttResStagChar.getFlConTopStag()); |
| | | tableMap.put("flConTopStag", tbAttResStagChar==null || tbAttResStagChar.getFlConTopStag()==null?"":String.format("%.2f",tbAttResStagChar.getFlConTopStag())); |
| | | tableMap.put("flSortCap", tbAttResStagChar==null || tbAttResStagChar.getFlStorCap()==null?"":tbAttResStagChar.getFlStorCap()); |
| | | tableMap.put("corNormStag", tbAttResStagChar==null || tbAttResStagChar.getCorNormStag()==null?"":String.format("%.2f",tbAttResStagChar.getCorNormStag())); |
| | | tableMap.put("adjustStorCap", tbAttResStagChar==null || tbAttResStagChar.getAdjustStorCap()==null?"":WordUtil.removeTrailingZero(tbAttResStagChar.getAdjustStorCap().toString())); |
| | |
| | | if (!StringUtils.isEmpty(afs) && !StringUtils.isEmpty(afe)) { |
| | | tableMap.put("afterFloodDataInfo", afs + "-" + afe); |
| | | } |
| | | tableMap.put("desFloodFlowMax", tbAttResStagChar==null || tbAttResStagChar.getDesFloodFlowMax()==null?"":tbAttResStagChar.getDesFloodFlowMax()); |
| | | tableMap.put("checFloodFlowMax", tbAttResStagChar==null || tbAttResStagChar.getChecFloodFlowMax()==null?"":tbAttResStagChar.getChecFloodFlowMax());; |
| | | tableMap.put("desFloodFlowMax", tbAttResStagChar==null || tbAttResStagChar.getDesFloodFlowMax()==null?"":WordUtil.removeTrailingZero(tbAttResStagChar.getDesFloodFlowMax().toString())); |
| | | tableMap.put("checFloodFlowMax", tbAttResStagChar==null || tbAttResStagChar.getChecFloodFlowMax()==null?"":WordUtil.removeTrailingZero(tbAttResStagChar.getChecFloodFlowMax().toString()));; |
| | | |
| | | String mainDamType = ""; |
| | | String mainDamMainFoundation = ""; |
| | |
| | | } |
| | | if (null != tbAttResRsbNorspi.getGateWide()) { |
| | | if (StringUtil.isNotBlank(typeName)) { |
| | | norwgtStr += "," + tbAttResRsbNorspi.getGateWide() + "×" + tbAttResRsbNorspi.getGateLength(); |
| | | norwgtStr += "," + tbAttResRsbNorspi.getGateNum() + "-" + tbAttResRsbNorspi.getGateWide() + "×" + tbAttResRsbNorspi.getGateLength(); |
| | | } else { |
| | | norwgtStr += tbAttResRsbNorspi.getGateWide() + "×" + tbAttResRsbNorspi.getGateLength(); |
| | | norwgtStr += tbAttResRsbNorspi.getGateNum() + "-" + tbAttResRsbNorspi.getGateWide() + "×" + tbAttResRsbNorspi.getGateLength(); |
| | | } |
| | | } |
| | | // norWorkingGateType = StringUtil.format("{},{}X{}", typeName, tbAttResRsbNorspi.getGateWide(), tbAttResRsbNorspi.getGateLength()); |
| | |
| | | if (StringUtil.isNotBlank(tbAttResRsbNorspi.getOcPower())) { |
| | | list.add(tbAttResRsbNorspi.getOcPower()); |
| | | } |
| | | norOc = String.join(",", list); |
| | | norOc = String.join(",", list); |
| | | } |
| | | |
| | | tableMap.put("norSpillwayType", norSpillwayType); |
| | | tableMap.put("isLocDamBody", isLocDamBody); |
| | | tableMap.put("norWeirTopElevation", norWeirTopElevation); |
| | | tableMap.put("norWeirTopElevation", StringUtils.isEmpty(norWeirTopElevation)?norWeirTopElevation:String.format("%.2f", Double.parseDouble(norWeirTopElevation))); |
| | | tableMap.put("norWeirTopWidth", norWeirTopWidth); |
| | | tableMap.put("norWorkingGateType", norWorkingGateType); |
| | | tableMap.put("norCheckingFloodDischarge", norCheckingFloodDischarge); |
| | |
| | | List<String> list = new ArrayList<>(); |
| | | list.add(convertType(tbAttResRsbSpillway.getOcType(), "OcTypeEnum")); |
| | | list.add(tbAttResRsbSpillway.getOcPower()); |
| | | rsbOc = String.join(",", list); |
| | | rsbOc = String.join(",", list); |
| | | } |
| | | |
| | | |
| | | tableMap.put("rsbSpillwayType", rsbSpillwayType); |
| | | tableMap.put("coveLength", coveLength); |
| | | tableMap.put("rsbThresholdElevation", rsbThresholdElevation); |
| | | tableMap.put("rsbThresholdElevation", StringUtils.isEmpty(rsbThresholdElevation)?rsbThresholdElevation:String.format("%.2f",Double.parseDouble(rsbThresholdElevation))); |
| | | tableMap.put("rsbExportElevation", rsbExportElevation); |
| | | tableMap.put("rsbSection", rsbSection); |
| | | tableMap.put("checkFlDisCharge", checkFlDisCharge); |
| | |
| | | List<String> list = new ArrayList<>(); |
| | | list.add(convertType(tbAttResWaterDelivery.getOcType(), "SpillwayHoleType")); |
| | | list.add(convertType(tbAttResWaterDelivery.getOcPower(), "SpillwayHoleType")); |
| | | deliverOc = String.join(",", list); |
| | | deliverOc = String.join(",", list); |
| | | |
| | | if (i == 0) { |
| | | tableMap.put("输水建筑物名称1", StringUtil.isBlank(tbAttResWaterDelivery.getName())?"输水建筑物":tbAttResWaterDelivery.getName()); |
| | | tableMap.put("aqueductType1", aqueductType); |
| | | tableMap.put("aqueductLength1", aqueductLength); |
| | | tableMap.put("thresholdElevation1", thresholdElevation); |
| | | tableMap.put("thresholdElevation1", StringUtils.isEmpty(thresholdElevation)?thresholdElevation:String.format("%.2f",Double.parseDouble(thresholdElevation))); |
| | | tableMap.put("exportElevation1", exportElevation); |
| | | tableMap.put("deliverSection1", deliverSection); |
| | | tableMap.put("designFlow1", designFlow); |
| | |
| | | tableMap.put("输水建筑物名称2", StringUtil.isBlank(tbAttResWaterDelivery.getName())?"输水建筑物":tbAttResWaterDelivery.getName()); |
| | | tableMap.put("aqueductType2", aqueductType); |
| | | tableMap.put("aqueductLength2", aqueductLength); |
| | | tableMap.put("thresholdElevation2", thresholdElevation); |
| | | tableMap.put("thresholdElevation2", StringUtils.isEmpty(thresholdElevation)?thresholdElevation:String.format("%.2f",Double.parseDouble(thresholdElevation))); |
| | | tableMap.put("exportElevation2", exportElevation); |
| | | tableMap.put("deliverSection2", deliverSection); |
| | | tableMap.put("designFlow2", designFlow); |
| | |
| | | tableMap.put("输水建筑物名称3", StringUtil.isBlank(tbAttResWaterDelivery.getName())?"输水建筑物":tbAttResWaterDelivery.getName()); |
| | | tableMap.put("aqueductType3", aqueductType); |
| | | tableMap.put("aqueductLength3", aqueductLength); |
| | | tableMap.put("thresholdElevation3", thresholdElevation); |
| | | tableMap.put("thresholdElevation3", StringUtils.isEmpty(thresholdElevation)?thresholdElevation:String.format("%.2f",Double.parseDouble(thresholdElevation))); |
| | | tableMap.put("exportElevation3", exportElevation); |
| | | tableMap.put("deliverSection3", deliverSection); |
| | | tableMap.put("designFlow3", designFlow); |