[add] 新增进度类别模块 [refactor] 将 req 包修改为 dto 包 [update] 修改光伏板创建逻辑

This commit is contained in:
lcj
2025-05-22 19:54:24 +08:00
parent dc1de34116
commit 0529b0e00a
296 changed files with 1402 additions and 594 deletions

View File

@ -1,4 +1,4 @@
use energy;
use xinnengyuan;
drop table if exists bus_project;
create table `bus_project`
@ -801,7 +801,7 @@ CREATE TABLE `fac_photovoltaic_panel`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '光伏板名称',
`positions` text null comment '光伏板位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -823,7 +823,7 @@ CREATE TABLE `fac_photovoltaic_panel_point`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '光伏板桩点名称',
`positions` text null comment '光伏板桩点位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -845,7 +845,7 @@ CREATE TABLE `fac_photovoltaic_panel_column`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '光伏板立柱名称',
`positions` text null comment '光伏板立柱位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -867,7 +867,7 @@ CREATE TABLE `fac_photovoltaic_panel_support`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '光伏板支架名称',
`positions` text null comment '光伏板支架位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -889,7 +889,7 @@ CREATE TABLE `fac_inverter`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '逆变器名称',
`positions` text null comment '逆变器位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -911,7 +911,7 @@ CREATE TABLE `fac_box_transformer`
`matrix_id` bigint not null comment '方阵id',
`name` varchar(100) not null comment '箱变名称',
`positions` text null comment '箱变位置',
`status` char(1) default 0 not null comment '完成状态0未完成 1完成)',
`status` char(1) default 0 not null comment '完成状态0未开始 1进行中 2完成)',
`finish_type` char(1) null comment '完成类型1手动填报 2AI填报',
`remark` varchar(512) null comment '备注',
`create_by` varchar(64) null comment '创建者',
@ -957,3 +957,18 @@ CREATE TABLE `bus_project_news`
PRIMARY KEY (`id`) USING BTREE,
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`
(
`id` bigint not null auto_increment 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表示共用',
`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 ='进度类别'