添加缓存

This commit is contained in:
WenG 2021-04-06 22:03:12 +08:00
parent 1ce135f78e
commit 1c84a5b1eb

View File

@ -54,8 +54,10 @@ public class StartUp implements ApplicationRunner {
processService.deployProcess("check-self", "网格员检查上报流程"); processService.deployProcess("check-self", "网格员检查上报流程");
// 初始化统计防止第一次打开慢 // 初始化统计防止第一次打开慢
Map<String, Object> params = new HashMap<>(); new Thread(() -> {
enterpriseService.countEnterpriseByNature(params); Map<String, Object> params = new HashMap<>();
enterpriseService.countEnterpriseByNature(params);
}).start();
for (int year = currentYear; year >= startYear; year--) { for (int year = currentYear; year >= startYear; year--) {
final String yearStr = String.valueOf(year); final String yearStr = String.valueOf(year);
new Thread(() -> { new Thread(() -> {