zqy
3 天以前 3eb37463a952fb69d586769ca660886b956cb016
zhang-content/src/main/java/com/ruoyi/service/impl/InterfaceBasedSearchRouter.java
@@ -49,7 +49,7 @@
    @Async
    public CompletableFuture<ModuleSearchResult> searchModuleAsync(String moduleCode, ModuleSearchable service,
                                                                   String companion, Date startTime, Date endTime,
                                                                   String hasAttachment, Integer pageNum, Integer pageSize) {
                                                                   String hasAttachment) {
        long start = System.currentTimeMillis();
        try {
            // 调用搜索方法,返回 List<?>
@@ -150,11 +150,10 @@
        }
        // 并发搜索
        Integer finalPageNum = pageNum;
        Integer finalPageSize = pageSize;
        List<CompletableFuture<ModuleSearchResult>> futures = moduleCodes.stream()
            .map(code -> searchModuleAsync(code, moduleSearchMap.get(code),
                companion, startTime, endTime, hasAttachment, finalPageNum, finalPageSize))
                companion, startTime, endTime, hasAttachment))
            .collect(Collectors.toList());
        // 等待完成