| | |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectArchALL") |
| | | public R selectArchALL() { |
| | | return R.data(architectureService.selectArchALL()); |
| | | public R selectArchALL(ArchitectureVO architecture) { |
| | | return R.data(architectureService.selectArchALL(architecture)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * 校园搜索 |
| | | * |
| | | * @param mechanismName 名称模糊查询 |
| | | * @param campus 所属校区 |
| | | * @return |
| | | */ |
| | | @GetMapping("/selectLook") |
| | | public R selectLook(String mechanismName) { |
| | | public R selectLook(String mechanismName,String campus) { |
| | | List list = new ArrayList(); |
| | | List<Map<Object, Object>> maps = architectureService.selectLook(mechanismName); |
| | | List<Map<Object, Object>> maps = architectureService.selectLook(mechanismName,campus); |
| | | //排除为null的数据 |
| | | List<Map<Object, Object>> list2 = maps.parallelStream().filter(Objects::nonNull).collect(Collectors.toList()); |
| | | // for (int i = 0; i < list2.size(); i++) { |
| | |
| | | */ |
| | | @GetMapping("/url") |
| | | public void url() throws IOException, ServerException, InsufficientDataException, NoSuchAlgorithmException, InternalException, InvalidResponseException, XmlParserException, InvalidKeyException, ErrorResponseException { |
| | | List<Architecture> list = architectureService.selectArchALL(); |
| | | List<Architecture> list = architectureService.selectArchALL(null); |
| | | for (Architecture architecture : list) { |
| | | int index = architecture.getCodeurl().lastIndexOf(",") +1; |
| | | String substring = architecture.getCodeurl().substring(index); |
| | |
| | | */ |
| | | @GetMapping("/refreshCode") |
| | | public void refreshCode() throws IOException, ServerException, InsufficientDataException, NoSuchAlgorithmException, InternalException, InvalidResponseException, XmlParserException, InvalidKeyException, ErrorResponseException { |
| | | List<Architecture> list = architectureService.selectArchALL(); |
| | | List<Architecture> list = architectureService.selectArchALL(null); |
| | | for (Architecture architecture : list) { |
| | | int index = architecture.getCodeurl().lastIndexOf(",") +1; |
| | | String substring = architecture.getCodeurl().substring(index); |