Compare commits

...

2 Commits

Author SHA1 Message Date
wangliwen ccfeb75132 Merge branch 'dev' 2023-01-03 15:12:06 +08:00
wangliwen 8875a49486 创建数据快照数据表 2023-01-03 15:11:56 +08:00
2 changed files with 35 additions and 0 deletions

View File

@ -637,4 +637,21 @@ public class CensusController {
return list;
}
// TODO 同比环比
@GetMapping("/similitude")
@ApiOperation("资源数量环比")
@LogOperation("资源数量环比")
@ApiImplicitParams({})
public Result similitude() {
return new Result();
}
@GetMapping("/similitude_dept")
@ApiOperation("部门资源数量环比")
@LogOperation("部门资源数量环比")
@ApiImplicitParams({})
public Result similitudeDept() {
return new Result();
}
}

View File

@ -0,0 +1,18 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_date_snapshot
-- ----------------------------
DROP TABLE IF EXISTS `sys_date_snapshot`;
CREATE TABLE `sys_date_snapshot` (
`id` bigint NOT NULL COMMENT '主键',
`type` int NULL DEFAULT NULL COMMENT '数据快照类型1每周快照 2每月快照',
`creator` bigint NULL DEFAULT NULL COMMENT '创建人',
`create_date` datetime NOT NULL COMMENT '创建时间',
`snapshot` json NOT NULL COMMENT '数据快照内容',
PRIMARY KEY (`id`) USING BTREE,
INDEX `type`(`type` ASC) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '运行数据快照(资源数量、申请数量)' ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;