[update]修改根据GeoJson创建方阵、光伏板、箱变、逆变器方法 [add] 新增进度计划模版、进度计划接口

This commit is contained in:
lcj
2025-05-26 19:58:15 +08:00
parent caef8fc4e2
commit 560ed53f70
43 changed files with 1985 additions and 211 deletions

View File

@ -958,17 +958,61 @@ CREATE TABLE `bus_project_news`
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id'
) comment = '项目新闻' COLLATE = utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `pgs_progress_category`;
CREATE TABLE `pgs_progress_category`
DROP TABLE IF EXISTS `pgs_progress_category_template`;
CREATE TABLE `pgs_progress_category_template`
(
`id` bigint not null auto_increment comment '主键id',
`pid` bigint default 0 not null comment '父类别id',
`pid` bigint default '0' not null comment '父类别id',
`name` varchar(64) not null comment '类别名称',
`unit_type` char(1) not null comment '计量方式0无 1数量 2百分比',
`project_id` bigint default 0 not null comment '项目id0表示共用',
`project_id` bigint default '0' not null comment '项目id0表示共用',
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_pid` (`pid` ASC) USING BTREE comment '父类别id',
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id'
) comment ='进度类别'
) comment ='进度类别模版' COLLATE = utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `pgs_progress_category`;
CREATE TABLE `pgs_progress_category`
(
`id` bigint not null auto_increment comment '主键id',
`pid` bigint default '0' not null comment '父类别id',
`project_id` bigint not null comment '项目id',
`matrix_id` bigint not null comment '方阵id',
`name` varchar(64) not null comment '类别名称',
`unit_type` char(1) not null comment '计量方式0无 1数量 2百分比',
`total` decimal(10, 2) null comment '总数量/百分比',
`completed` decimal(10, 2) null comment '已完成数量/百分比',
`plan_total` decimal(10, 2) null comment '计划总数量/百分比',
`is_delay` char(1) default '0' not null comment '是否超期0否 1是',
`status` char(1) default '0' not null comment '完成状态0未开始 1进行中 2已完成',
`create_by` varchar(64) null comment '创建者',
`update_by` varchar(64) null comment '更新者',
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
`deleted_at` datetime null comment '删除时间',
`is_delete` tinyint(4) default 0 not null comment '是否删除0正常 1删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_pid` (`pid` ASC) USING BTREE comment '父类别id',
INDEX `idx_matrix_id` (`matrix_id` ASC) USING BTREE comment '方阵id',
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id'
) comment ='进度类别' COLLATE = utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `fac_percentage_facility`;
CREATE TABLE `fac_percentage_facility`
(
`id` bigint not null auto_increment comment '主键id',
`project_id` bigint not null comment '项目id',
`matrix_id` bigint not null comment '方阵id',
`progress_category_id` bigint null comment '进度类型id',
`progress_category_name` varchar(64) null comment '进度类别名称',
`create_by` varchar(64) null comment '创建者',
`update_by` varchar(64) null comment '更新者',
`create_time` datetime default CURRENT_TIMESTAMP null comment '创建时间',
`update_time` datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
INDEX `idx_matrix_id` (`matrix_id` ASC) USING BTREE comment '方阵id',
INDEX `idx_progress_category_id` (`progress_category_id` ASC) USING BTREE comment '进度类别id'
) comment ='设施-百分比设施' COLLATE = utf8mb4_unicode_ci;