| | |
| | | tableMap.put("mainUpDamProtectType", mainUpDamProtectType); |
| | | tableMap.put("mainDownDamProtectType", mainDownDamProtectType); |
| | | tableMap.put("damMainBodyType", damMainBodyType); |
| | | tableMap.put("damMainBodyTopElevation", null !=damMainBodyTopElevation?String.format("%.2f",Double.parseDouble(damMainBodyTopElevation)):""); |
| | | tableMap.put("damMainBodyTopElevation", StringUtil.isNotBlank(damMainBodyTopElevation)?String.format("%.2f",Double.parseDouble(damMainBodyTopElevation)):""); |
| | | tableMap.put("damMainDrainType", damMainDrainType); |
| | | tableMap.put("mainDamBodyType", mainDamBodyType); |
| | | int subDamNumNew = tbAttResWaterBlockList.size() - 1; |
| | |
| | | TbAttResRsbNorspi tbAttResRsbNorspi = tbAttResRsbNorspiList.get(0); |
| | | |
| | | if (tbAttResRsbNorspi.getSpillwayType().indexOf("9") > -1) { |
| | | norSpillwayType = tbAttResRsbNorspi.getSpillwayType().split(",")[1]; |
| | | String [] spillwayTypeStrs = tbAttResRsbNorspi.getSpillwayType().split(","); |
| | | if (spillwayTypeStrs.length > 1) { |
| | | norSpillwayType = spillwayTypeStrs[1]; |
| | | } else { |
| | | norSpillwayType = SpillwayTypeEnum.find(tbAttResRsbNorspi.getSpillwayType()).getLabel(); |
| | | } |
| | | |
| | | } else { |
| | | norSpillwayType = SpillwayTypeEnum.find(tbAttResRsbNorspi.getSpillwayType()).getLabel(); |
| | | } |
| | |
| | | norWeirTopElevation = isNullObject(tbAttResRsbNorspi.getWeirTopElevation()); |
| | | norWeirTopWidth = isNullObject(tbAttResRsbNorspi.getWeirTopWidth()); |
| | | |
| | | if (tbAttResRsbNorspi.getIsGate().equals("否")) { |
| | | if (null != tbAttResRsbNorspi.getIsGate() && tbAttResRsbNorspi.getIsGate().equals("否")) { |
| | | norWorkingGateType = "无闸控制"; |
| | | } else if (tbAttResRsbNorspi.getIsGate().equals("是")) { |
| | | } else if (null != tbAttResRsbNorspi.getIsGate() && tbAttResRsbNorspi.getIsGate().equals("是")) { |
| | | // 平板闸门,3X3 |
| | | String typeName = RsbWorkingGateEnum.find(tbAttResRsbNorspi.getWorkingGateType().toString()).getLabel(); |
| | | String norwgtStr = ""; |
| | |
| | | List<String> list = new ArrayList<>(); |
| | | list.add(convertType(tbAttResRsbSpillway.getOcType(), "OcTypeEnum")); |
| | | list.add(tbAttResRsbSpillway.getOcPower()); |
| | | rsbOc = String.join(",", list); |
| | | if (StringUtil.isNotBlank(convertType(tbAttResRsbSpillway.getOcType(), "OcTypeEnum")) && |
| | | StringUtil.isNotBlank(tbAttResRsbSpillway.getOcPower())) { |
| | | rsbOc = String.join(",", list); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | tableMap.put("deliverSection3", deliverSection); |
| | | tableMap.put("designFlow3", designFlow); |
| | | tableMap.put("workingGateType3", workingGateType); |
| | | tableMap.put("deliverOc", deliverOc); |
| | | tableMap.put("deliverOc3", deliverOc); |
| | | } |
| | | } |
| | | |
| | |
| | | // } |
| | | |
| | | |
| | | tableMap.put("supplyPopulation", tbAttResEngBene.getSupplyPopulation()); |
| | | tableMap.put("supplyPopulation", tbAttResEngBene==null?"":tbAttResEngBene.getSupplyPopulation()==null?"":tbAttResEngBene.getSupplyPopulation()); |
| | | tableMap.put("moyearSupplyAvg", tbAttResEngBene==null?"":tbAttResEngBene.getMoyearSupplyAvg()==null?"":tbAttResEngBene.getMoyearSupplyAvg()); |
| | | tableMap.put("moyearPowerAvg", tbAttResEngBene==null?"":tbAttResEngBene.getMoyearPowerAvg()==null?"":tbAttResEngBene.getMoyearPowerAvg()); |
| | | tableMap.put("ecologicalFlow", tbAttResEngBene==null?"":tbAttResEngBene.getEcologicalFlow()==null?"":tbAttResEngBene.getEcologicalFlow()); |
| | |
| | | |
| | | |
| | | private String convertType(String type, String enumName) { |
| | | if (StringUtil.isBlank(type)) { |
| | | return ""; |
| | | } |
| | | |
| | | String text = ""; |
| | | |
| | | List<String> typeList = Arrays.asList(type.split(",")); |