施工人员补卡记录、请假记录相关接口

This commit is contained in:
lcj
2025-04-09 10:27:02 +08:00
parent fe596e6fc1
commit 4307f073e1
38 changed files with 2355 additions and 122 deletions

View File

@ -541,3 +541,70 @@ CREATE TABLE `bus_construction_user_exit`
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组id'
) comment = '施工人员入场退场记录信息' COLLATE = utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `bus_reissue_card`;
CREATE TABLE `bus_reissue_card`
(
`id` bigint not null auto_increment comment '主键id',
`user_id` bigint not null comment '申请人id',
`user_name` varchar(50) not null comment '申请人名字',
`user_explain` varchar(512) null comment '申请补卡说明',
`user_time` datetime default CURRENT_TIMESTAMP null comment '补卡申请时间',
`ganger_id` bigint null comment '班组长',
`ganger_name` varchar(50) null comment '班组长名字',
`ganger_opinion` char(1) default '1' not null comment '班组长意见1未读 2同意 3拒绝',
`ganger_explain` varchar(512) null comment '班组长说明',
`ganger_time` datetime null comment '班组长操作时间',
`manager_opinion` char(1) default '1' not null comment '管理员意见1未读 2同意 3拒绝',
`manager_explain` varchar(512) null comment '管理员说明',
`manager_time` datetime null comment '管理员操作时间',
`project_id` bigint not null comment '项目id',
`team_id` bigint null comment '班组id',
`reissue_card_type` char(1) not null comment '补卡类型1上班 2下班',
`attendance_id` bigint not null comment '考勤表主键id',
`remark` varchar(512) 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 '更新时间',
`deleted_at` datetime null comment '删除时间',
`is_delete` tinyint(4) default 0 not null comment '是否删除0正常 1删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_user_id` (`user_id` ASC) USING BTREE comment '用户id',
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组id'
) comment = '施工人员补卡申请' collate = utf8mb4_unicode_ci;
DROP TABLE IF EXISTS `bus_leave`;
CREATE TABLE `bus_leave`
(
`id` bigint not null auto_increment comment '主键id',
`user_id` bigint not null comment '申请人id',
`user_name` varchar(50) not null comment '申请人名字',
`user_explain` varchar(512) null comment '申请请假说明',
`user_time` datetime default CURRENT_TIMESTAMP null comment '请假申请时间',
`leave_type` char(1) not null comment '请假类型1事假 2病假',
`start_time` datetime not null comment '请假开始时间',
`end_time` datetime not null comment '请假结束时间',
`ganger_id` bigint null comment '班组长',
`ganger_name` varchar(50) null comment '班组长名字',
`ganger_opinion` char(1) default '1' not null comment '班组长意见1未读 2同意 3拒绝',
`ganger_explain` varchar(512) null comment '班组长说明',
`ganger_time` datetime null comment '班组长操作时间',
`manager_opinion` char(1) default '1' not null comment '管理员意见1未读 2同意 3拒绝',
`manager_explain` varchar(512) null comment '管理员说明',
`manager_time` datetime null comment '管理员操作时间',
`project_id` bigint not null comment '项目id',
`team_id` bigint null comment '班组id',
`remark` varchar(512) 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 '更新时间',
`deleted_at` datetime null comment '删除时间',
`is_delete` tinyint(4) default 0 not null comment '是否删除0正常 1删除',
PRIMARY KEY (`id`) USING BTREE,
INDEX `idx_user_id` (`user_id` ASC) USING BTREE comment '用户id',
INDEX `idx_project_id` (`project_id` ASC) USING BTREE comment '项目id',
INDEX `idx_team_id` (`team_id` ASC) USING BTREE comment '班组id'
) comment = '施工人员请假申请' collate = utf8mb4_unicode_ci;