Merge branch 'dev'

This commit is contained in:
wangliwen 2022-10-13 10:17:56 +08:00
commit 6cc646b959
1 changed files with 6 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.web.bind.annotation.*;
import java.util.*;
@ -54,6 +55,9 @@ public class CensusController {
@Autowired
private ResourceDao resourceDao;
@Autowired
private JdbcTemplate jdbcTemplate;
@Value("${census.type}")
private String[] censusTypes; // 需要进行统计的资源类型
@ -108,7 +112,7 @@ public class CensusController {
}, executor).thenAccept(sum -> result.add(new HashMap<String, Object>() {
{
put("amount", sum);
put("type", "资源汇聚总量");
put("type", "资源上架总量");
}
}));
CompletableFuture<Void> userAmount = CompletableFuture.supplyAsync(() -> { // 获取平台用户总数
@ -134,7 +138,7 @@ public class CensusController {
}, executor).thenAccept(sum -> result.add(new HashMap<String, Object>() {
{
put("amount", sum);
put("type", "资源汇聚部门量");
put("type", "已上架部门数");
}
}));