lxw
2023-05-19 88808f830602316bba82fe7c28c25b84e4891df6
管理员任务websocket修改
1个文件已修改
8 ■■■■ 已修改文件
src/main/java/com/whyc/webSocket/TaskManageAdminWebsocket.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/webSocket/TaskManageAdminWebsocket.java
@@ -95,20 +95,14 @@
        Map<String, Object> res = new HashMap<>();
        try {
            ThreadPoolExecutor poolExecutor = ThreadPoolExecutorFactory.getPoolExecutor();
            CountDownLatch latch = new CountDownLatch(5);
            CountDownLatch latch = new CountDownLatch(3);
            poolExecutor.execute(() -> {
                //本月
                Response monRes = faultUploadService.groupNameCount(1, userId);
                res.put("monRes", monRes);
                latch.countDown();
            });
            poolExecutor.execute(() -> {
                //本季度
                Response quarterRes = faultUploadService.groupNameCount(2, userId);
                res.put("quarterRes", quarterRes);
                latch.countDown();
            });
            poolExecutor.execute(() -> {
                //本年
                Response yearRes = faultUploadService.groupNameCount(3, userId);
                res.put("yearRes", yearRes);