统计删除知识库数据
This commit is contained in:
parent
6dbe768720
commit
6fa748b834
|
@ -122,7 +122,9 @@ public class CensusController {
|
|||
CompletableFuture<Void> resourceAmount = CompletableFuture.supplyAsync(() -> { // 获取资源汇聚总量
|
||||
Map map = (Map) resourceService.selectTotal();
|
||||
List<Map<String, Object>> dbAmount = (List<Map<String, Object>>) map.get("total");
|
||||
return dbAmount.stream().mapToLong(index -> Long.parseLong(index.get("count").toString())).sum();
|
||||
return dbAmount.stream()
|
||||
.filter(index -> !"知识库".equals(index.get("type").toString())) //2022-11-24 资源总量去除知识库统计
|
||||
.mapToLong(index -> Long.parseLong(index.get("count").toString())).sum();
|
||||
}, executor).thenAccept(sum -> result.add(new HashMap<String, Object>() {
|
||||
{
|
||||
put("amount", sum);
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
ALTER TABLE sys_role_user
|
||||
ADD COLUMN `del_flag` INT NOT NULL DEFAULT 0 COMMENT '删除标志:0正常,1删除',
|
||||
ADD COLUMN `updater` BIGINT NULL COMMENT '修改人',
|
||||
ADD COLUMN `update_date` datetime(0) NULL COMMENT '修改时间';
|
||||
|
Loading…
Reference in New Issue