| | |
| | | List<OneMapEntity> resList = new ArrayList<>(); |
| | | |
| | | List<OneMapEntity> resInfo = aMapOfPipelineMapper.selectProjectType1(); |
| | | for (int i = 0; i < resInfo.size(); i++) { |
| | | if (resInfo.get(i).getValue().equals("测量(ESV)")) { |
| | | |
| | | String valueStr = resInfo.get(i).getKey(); |
| | | for (OneMapEntity oneMapEntity : resInfo) { |
| | | if (oneMapEntity.getValue().equals("测量(ESV)")) { |
| | | String valueStr = oneMapEntity.getKey(); |
| | | System.out.println("测量(ESV)== valueStr == " + valueStr); |
| | | String endSql = null; |
| | | String sqlQur = ""; |
| | |
| | | if (arrStr.length > 0) { |
| | | System.out.println("arrStr = " + arrStr.length); |
| | | } |
| | | for (int j = 0; j < arrStr.length; j++) { |
| | | sqlQur = "\'" + arrStr[j] + "%\' " + "or dircode like"; |
| | | for (String s : arrStr) { |
| | | sqlQur = "\'" + s + "%\' " + "or dircode like"; |
| | | one.append(sqlQur); |
| | | } |
| | | endSql = " where dircode like " + one.substring(0, one.toString().length() - 15); |
| | |
| | | } |
| | | resList.addAll(aMapOfPipelineMapper.selectProjectTypeOne(endSql)); |
| | | |
| | | } else if (resInfo.get(i).getValue().equals("勘察(EGE)")) { |
| | | |
| | | String valueStr = resInfo.get(i).getKey(); |
| | | } else if (oneMapEntity.getValue().equals("勘察(EGE)")) { |
| | | String valueStr = oneMapEntity.getKey(); |
| | | System.out.println("勘察(EGE)== valueStr == " + valueStr); |
| | | String endSql1 = null; |
| | | String sqlQur = ""; |
| | |
| | | if (arrStr1.length > 0) { |
| | | System.out.println("arrStr = " + arrStr1.length); |
| | | } |
| | | for (int j = 0; j < arrStr1.length; j++) { |
| | | sqlQur = "\'" + arrStr1[j] + "%\' " + "or dircode like"; |
| | | for (String s : arrStr1) { |
| | | sqlQur = "\'" + s + "%\' " + "or dircode like"; |
| | | one.append(sqlQur); |
| | | } |
| | | endSql1 = " where dircode like " + one.substring(0, one.toString().length() - 15); |
| | |
| | | } |
| | | resList.addAll(aMapOfPipelineMapper.selectProjectTypeOne(endSql1)); |
| | | |
| | | |
| | | } else if (resInfo.get(i).getValue().equals("地灾(EGD)")) { |
| | | String valueStr = resInfo.get(i).getKey(); |
| | | } else if (oneMapEntity.getValue().equals("地灾(EGD)")) { |
| | | String valueStr = oneMapEntity.getKey(); |
| | | System.out.println("地灾(EGD)== valueStr == " + valueStr); |
| | | String endSql2 = null; |
| | | String sqlQur = ""; |
| | |
| | | } |
| | | resList.addAll(aMapOfPipelineMapper.selectProjectTypeOne(endSql2)); |
| | | |
| | | } else if (resInfo.get(i).getValue().equals("洞库(EGD)")) { |
| | | String valueStr = resInfo.get(i).getKey(); |
| | | } else if (oneMapEntity.getValue().equals("洞库(EGD)")) { |
| | | String valueStr = oneMapEntity.getKey(); |
| | | System.out.println("洞库(EGD)== valueStr == " + valueStr); |
| | | String endSql3 = null; |
| | | String sqlQur = ""; |