文案调整

This commit is contained in:
wangliwen 2022-10-13 10:17:44 +08:00
parent 02398a3641
commit 35b53fa901
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", "已上架部门数");
}
}));