npe
This commit is contained in:
parent
d95fd0496a
commit
f185f943de
|
@ -292,7 +292,7 @@ public class CensusControllerV2 {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
CompletableFuture<Void> allKnowledgeVisitsAmount = CompletableFuture.supplyAsync(() -> { // 获取平台知识库浏览量
|
CompletableFuture<Void> allKnowledgeVisitsAmount = CompletableFuture.supplyAsync(() -> { // 获取平台知识库浏览量
|
||||||
return jdbcTemplate.queryForObject("SELECT SUM(visits) visits FROM tb_data_resource WHERE type ='知识库' AND del_flag = 0;", Long.class);
|
return jdbcTemplate.queryForObject("SELECT IFNULL(SUM(visits),0) visits FROM tb_data_resource WHERE type ='知识库' AND del_flag = 0;", Long.class);
|
||||||
}).thenAccept(sum -> {
|
}).thenAccept(sum -> {
|
||||||
result.add(new HashMap<String, Object>() {
|
result.add(new HashMap<String, Object>() {
|
||||||
{
|
{
|
||||||
|
@ -434,7 +434,7 @@ public class CensusControllerV2 {
|
||||||
List<Map> lists = JSON.parseArray(ja, Map.class);
|
List<Map> lists = JSON.parseArray(ja, Map.class);
|
||||||
ArrayList<Map> list = new ArrayList<>();
|
ArrayList<Map> list = new ArrayList<>();
|
||||||
lists.forEach(item -> {
|
lists.forEach(item -> {
|
||||||
list.add(new HashMap<String, Object>(){{
|
list.add(new HashMap<String, Object>() {{
|
||||||
put("服务名称", item.get("zyname"));
|
put("服务名称", item.get("zyname"));
|
||||||
put("申请次数", item.get("syqk"));
|
put("申请次数", item.get("syqk"));
|
||||||
}});
|
}});
|
||||||
|
|
Loading…
Reference in New Issue