| | |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | List<DamStatisticsRes> list = damSecurityMapper.damResInfoCount(adCode); |
| | | |
| | | list.forEach(damStatisticsRes -> { |
| | | |
| | | List<DamStationStatistics> errorList = damSecurityMapper.getResErrorList(damStatisticsRes,adCode); |
| | | damStatisticsRes.setErrorList(errorList); |
| | | }); |
| | | |
| | | list.forEach(damStatisticsRes -> { |
| | | List<DamStationStatistics> normalList = new ArrayList<>(); |
| | | if (damStatisticsRes.getType().equals("1")){ |
| | | //渗压 |
| | | normalList = damSecurityMapper.getResSyNormalList(adCode); |
| | | }else if (damStatisticsRes.getType().equals("2")){ |
| | | //渗流 |
| | | normalList = damSecurityMapper.getResSlNormalList(adCode); |
| | | }else if (damStatisticsRes.getType().equals("3")){ |
| | | //位移 |
| | | normalList = damSecurityMapper.getResWyNormalList(adCode); |
| | | } |
| | | damStatisticsRes.setNormalList(normalList); |
| | | }); |
| | | |
| | | return list; |
| | | } |
| | | } |