diff --git a/hzims-service/operational/src/main/resources/db/1.0.0.sql b/hzims-service/operational/src/main/resources/db/1.0.0.sql index 072a4e2..ec9de93 100644 --- a/hzims-service/operational/src/main/resources/db/1.0.0.sql +++ b/hzims-service/operational/src/main/resources/db/1.0.0.sql @@ -1965,6 +1965,41 @@ CREATE TABLE `SCREEN_MAIN_PAGE_CONFIGURE` ( ) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI COMMENT = '大屏首页配置' ROW_FORMAT = DYNAMIC; -- ---------------------------- +-- TABLE STRUCTURE FOR HZIMS_OPER_CONSTRUCTION +-- ---------------------------- +DROP TABLE IF EXISTS `HZIMS_OPER_CONSTRUCTION`; +CREATE TABLE `HZIMS_OPER_CONSTRUCTION` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CODE` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工编号', + `CONSTRUCTION_TIME` DATETIME NULL DEFAULT NULL COMMENT '施工时间', + `OVERHAUL_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修名称', + `CONSTRUCTION_LOCATION` VARCHAR(1024) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工地点', + `OVERHAUL_HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '检修负责人', + `OVERHAUL_HEAD_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修负责人名称', + `OVERHAUL_PERSONNEL` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修人员: 根据“,”分割', + `OVERHAUL_PERSONNEL_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '检修人员名称: 根据“,”分割', + `OVERHAUL_TIME` DATETIME NULL DEFAULT NULL COMMENT '检修时间', + `COMPLETE_WORK_DESC` VARCHAR(2048) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NOT NULL COMMENT '今日完成任务描述', + `PLAN_WORK_DESC` VARCHAR(2048) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '明日工作计划描述', + `CONSTRUCTION_IMG` VARCHAR(512) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工图片: 根据“,”分割', + `CONSTRUCTION_ATTACHMENT` VARCHAR(512) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '施工附件', + `RECORDER` BIGINT(20) NULL DEFAULT NULL COMMENT '记录人', + `RECORDER_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '记录人名称', + `REVIEWER` BIGINT(20) NULL DEFAULT NULL COMMENT '审核人', + `REVIEWER_NAME` VARCHAR(255) CHARACTER SET UTF8MB4 COLLATE UTF8MB4_GENERAL_CI NULL DEFAULT NULL COMMENT '审核人名称', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', + `STATUS` TINYINT(4) NULL DEFAULT 0 COMMENT '业务状态', + `CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建单位', + `IS_DELETED` TINYINT(4) NOT NULL DEFAULT 0 COMMENT '是否删除', + `CREATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '修改时间', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = INNODB CHARACTER SET = UTF8MB4 COLLATE = UTF8MB4_GENERAL_CI COMMENT = '施工日志' ROW_FORMAT = DYNAMIC; + + +-- ---------------------------- -- TABLE STRUCTURE FOR TEMP_HIK_POINT -- ---------------------------- DROP TABLE IF EXISTS `TEMP_HIK_POINT`; diff --git a/hzims-service/operational/src/main/resources/template/word/constructio_template.docx b/hzims-service/operational/src/main/resources/template/word/constructio_template.docx index 5fdb700..e011887 100644 Binary files a/hzims-service/operational/src/main/resources/template/word/constructio_template.docx and b/hzims-service/operational/src/main/resources/template/word/constructio_template.docx differ diff --git a/hzims-service/ticket/src/main/resources/db/1.0.0.sql b/hzims-service/ticket/src/main/resources/db/1.0.0.sql index b4913a0..07d2437 100644 --- a/hzims-service/ticket/src/main/resources/db/1.0.0.sql +++ b/hzims-service/ticket/src/main/resources/db/1.0.0.sql @@ -611,6 +611,48 @@ CREATE TABLE `HZIMS_WORK_TICKET_TEMPLATE` ( ) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI COMMENT = '工作票模板' ROW_FORMAT = DYNAMIC; -- ---------------------------- +-- Table structure for hzims_work_task +-- ---------------------------- +DROP TABLE IF EXISTS `HZIMS_WORK_TASK`; +CREATE TABLE `HZIMS_WORK_TASK` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键', + `CODE` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务单编号', + `HEAD` BIGINT(20) NULL DEFAULT NULL COMMENT '工作负责人', + `HEAD_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作负责人名称', + `HEAD_HANDLE_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作负责人处理时间', + `GROUP_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '班组ID', + `GROUP_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组名称', + `MEMBER` VARCHAR(512) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组成员ID : 按 “,”分割', + `MEMBER_NAME` VARCHAR(1024) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '班组成员名称 : 按 “,”分割', + `PLAN_START_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作计划开始时间', + `PLAN_END_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作计划结束时间', + `WORK_TICKET_ID` BIGINT(20) NULL DEFAULT NULL COMMENT '工作票ID', + `WORK_TASK` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作任务', + `SECURITY_MEASURES` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '现场安全措施', + `RISK_PRE_CONTROL` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '安全风险及预控措施', + `LICENSOR` BIGINT(20) NULL DEFAULT NULL COMMENT '许可人', + `LICENSOR_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '许可人名称', + `LICENSOR_TIME` DATETIME NULL DEFAULT NULL COMMENT '许可时间', + `TERMINATOR` BIGINT(20) NULL DEFAULT NULL COMMENT '工作结束人', + `TERMINATOR_NAME` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '工作结束人名称', + `WORK_END_TIME` DATETIME NULL DEFAULT NULL COMMENT '工作结束时间', + `MEMO` VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '备注', + `PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程实例ID', + `TASK_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程环节名称', + `NEXT_STEP_OPERATOR` VARCHAR(512) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '流程环节处理人', + `DEPT_NAME` VARCHAR(255) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '创建机构名称', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '租户ID', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_TIME` DATETIME NULL DEFAULT NULL COMMENT '更新时间', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `UPDATE_USER` BIGINT(20) NULL DEFAULT NULL COMMENT '更新人', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除', + `STATUS` TINYINT(4) NULL DEFAULT NULL COMMENT '状态 ', + `CREATE_DEPT` BIGINT(20) NULL DEFAULT NULL COMMENT '创建部门', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = INNODB CHARACTER SET = UTF8 COLLATE = UTF8_GENERAL_CI COMMENT = '工作任务单' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- -- VIEW STRUCTURE FOR V_HZIMS_TICKET_INFO -- ---------------------------- DROP VIEW IF EXISTS `V_HZIMS_TICKET_INFO`;