From 1c84a5b1eb1ce29ac38f2b15a62985d1ee3e15f1 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Tue, 6 Apr 2021 22:03:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/cm/inspection/startup/StartUp.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/cm/inspection/startup/StartUp.java b/src/main/java/com/cm/inspection/startup/StartUp.java index 447446f..bd142b9 100644 --- a/src/main/java/com/cm/inspection/startup/StartUp.java +++ b/src/main/java/com/cm/inspection/startup/StartUp.java @@ -54,8 +54,10 @@ public class StartUp implements ApplicationRunner { processService.deployProcess("check-self", "网格员检查上报流程"); // 初始化统计,防止第一次打开慢 - Map params = new HashMap<>(); - enterpriseService.countEnterpriseByNature(params); + new Thread(() -> { + Map params = new HashMap<>(); + enterpriseService.countEnterpriseByNature(params); + }).start(); for (int year = currentYear; year >= startYear; year--) { final String yearStr = String.valueOf(year); new Thread(() -> {