| | |
| | | InsProductResult2 insProductResult2 = new InsProductResult2(); |
| | | if (entry.getKey().contains("驻波")) { |
| | | if (products1.size() <= 0) { |
| | | throw new ErrorException("çµå驻波æ¯é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products1.get(0).getId());//çµåé©»æ³¢æ¯ |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | String value = entry.getValue().stream().map(tianXianData1 -> "\"" + tianXianData1.getValue() + "\"").collect(Collectors.joining(",")); |
| | | insProductResult2.setValue("[[" + value + "]]");//å¼ |
| | | insProductResult2s.add(insProductResult2); |
| | | } else if (entry.getKey().contains("ååé离")) { |
| | | } |
| | | else if (entry.getKey().contains("ååé离")) { |
| | | if (products6.size() <= 0) { |
| | | throw new ErrorException("éç¦»åº¦é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products6.get(0).getId());//ååé离 |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | String value = entry.getValue().stream().map(tianXianData1 -> "\"" + tianXianData1.getValue() + "\"").collect(Collectors.joining(",")); |
| | | insProductResult2.setValue("[[" + value + "]]");//å¼ |
| | | insProductResult2s.add(insProductResult2); |
| | | } else if (entry.getKey().contains("端å£é´é离")) { |
| | | } |
| | | else if (entry.getKey().contains("端å£é´é离")) { |
| | | if (products7.size() <= 0) { |
| | | throw new ErrorException("端å£é´éç¦»é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products7.get(0).getId());//端å£é´é离 |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("åæåé离")) { |
| | | if (products2.size() <= 0) { |
| | | throw new ErrorException("åæåéç¦»é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products2.get(0).getId());//åæåé离 |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | String value = entry.getValue().stream().map(tianXianData1 -> "\"" + tianXianData1.getValue() + "\"").collect(Collectors.joining(",")); |
| | | insProductResult2.setValue("[[" + value + "]]");//å¼ |
| | | insProductResult2s.add(insProductResult2); |
| | | } else if (entry.getKey().contains("弿åé离")) { |
| | | } |
| | | else if (entry.getKey().contains("弿åé离")) { |
| | | if (products3.size() <= 0) { |
| | | throw new ErrorException("弿åéç¦»é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products3.get(0).getId());//弿åé离 |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | for (Map.Entry<String, List<TianXianData>> entry : collect.entrySet()) { |
| | | if (entry.getKey().contains("å¹
度")) { |
| | | if (products4.size() <= 0) { |
| | | throw new ErrorException("å¹
度åå·®é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | Map<String, List<TianXianData>> listHashMap = new HashMap<>(); |
| | | for (TianXianData xianData : entry.getValue()) { |
| | |
| | | insProductResult2.setValue("[[" + value + "]]");//å¼ |
| | | insProductResult2s.add(insProductResult2); |
| | | } |
| | | } else if (entry.getKey().contains("ç¸ä½")) { |
| | | } |
| | | else if (entry.getKey().contains("ç¸ä½")) { |
| | | if (products5.size() <= 0) { |
| | | throw new ErrorException("æå¤§ç¸ä½åå·®é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | Map<String, List<TianXianData>> listHashMap = new HashMap<>(); |
| | | for (TianXianData xianData : entry.getValue()) { |
| | |
| | | InsProductResult2 insProductResult2 = new InsProductResult2(); |
| | | if (entry.getKey().contains("驻波")) { |
| | | if (products1.size() <= 0) { |
| | | throw new ErrorException("çµå驻波æ¯é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products1.get(0).getId());//çµåé©»æ³¢æ¯ |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("é离度")) { |
| | | if (products2.size() <= 0) { |
| | | throw new ErrorException("éç¦»åº¦é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products2.get(0).getId());//æ æºå¨ä»¶é离度 |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("æå
¥æè")) { |
| | | if (products3.size() <= 0) { |
| | | throw new ErrorException("æå
¥æèé¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products3.get(0).getId());//æå
¥æè |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("带å
æ³¢å¨")) { |
| | | if (products4.size() <= 0) { |
| | | throw new ErrorException("带å
æ³¢å¨é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products4.get(0).getId());//带å
æ³¢å¨ |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("另夿å¶")) { |
| | | if (products5.size() <= 0) { |
| | | throw new ErrorException("另夿å¶é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | insProductResult2.setInsProductId(products5.get(0).getId());//å¸¦å¤æå¶ |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |
| | |
| | | } |
| | | else if (entry.getKey().contains("è¦å度")) { |
| | | if (products6.size() <= 0 || products7.size()<=0) { |
| | | throw new ErrorException("è¦ååº¦é¡¹ç®æªæ¾å°"); |
| | | continue; |
| | | } |
| | | /*æå¤§è¦å度*/ |
| | | insProductResult2.setFrequency(listEntry.getKey());//颿®µ |