haungxing
9 months ago
6 changed files with 257 additions and 468 deletions
@ -1,6 +1,12 @@ |
|||||||
INSERT INTO `process_dict` (`dict_code`, `dict_sort`, `dict_key`, `dict_value`, `dict_label`, `dict_type`, `is_default`, `status`, `create_dept`, `create_time`, `update_time`, `remark`) VALUES (9, 9, 'offlineWorkTicket', 'offlineWorkTicket', '线下工作票', '线下工作票', 'Y', 0, NULL, '2023-12-28 16:35:10', '2023-12-28 16:35:14', '线下工作票流程'); |
-- 线下工作票流程 |
||||||
|
INSERT INTO `process_dict` (`dict_code`, `dict_sort`, `dict_key`, `dict_value`, `dict_label`, `dict_type`, `is_default`, `status`, `create_dept`, `create_time`, `update_time`, `remark`) VALUES (13, 13, 'offlineWorkTicket', 'offlineWorkTicket', '线下工作票', '线下工作票', 'Y', 0, NULL, '2023-12-28 16:35:10', '2023-12-28 16:35:14', '线下工作票流程'); |
||||||
INSERT INTO `PROCESS_DICT` (`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (9, 9, 'WORK_TASK', 'WORK_TASK', '工作任务单V4', '工作任务单', 'Y', 0, NULL, '2023-07-25 18:35:01', '2024-01-09 14:48:18', '工作任务单流程'); |
-- 工作任务单流程 |
||||||
|
INSERT INTO `PROCESS_DICT` (`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (14, 14, 'WORK_TASK', 'WORK_TASK', '工作任务单V4', '工作任务单', 'Y', 0, NULL, '2023-07-25 18:35:01', '2024-01-09 14:48:18', '工作任务单流程'); |
||||||
|
-- 风险排查流程 |
||||||
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (10, 10, 'HAZARD_RISK', 'HAZARD_RISK', '风险排查', '风险排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-09-19 22:35:40', '风险排查流程'); |
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (10, 10, 'HAZARD_RISK', 'HAZARD_RISK', '风险排查', '风险排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-09-19 22:35:40', '风险排查流程'); |
||||||
|
-- 告警处理流程 |
||||||
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (11, 11, 'DEALALARM', 'DEALALARM', '告警处理流程', '告警处理流程', 'Y', 0, NULL, '2024-02-19 16:56:10', '2024-02-19 16:56:34', '告警处理流程'); |
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (11, 11, 'DEALALARM', 'DEALALARM', '告警处理流程', '告警处理流程', 'Y', 0, NULL, '2024-02-19 16:56:10', '2024-02-19 16:56:34', '告警处理流程'); |
||||||
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (12, 12, 'HIDDENDANGERCHECK', 'HIDDENDANGERCHECK', '隐患排查', '隐患排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-07-25 18:35:01', '隐患排查流程'); |
-- 隐患排查流程 |
||||||
|
INSERT INTO `PROCESS_DICT`(`DICT_CODE`, `DICT_SORT`, `DICT_KEY`, `DICT_VALUE`, `DICT_LABEL`, `DICT_TYPE`, `IS_DEFAULT`, `STATUS`, `CREATE_DEPT`, `CREATE_TIME`, `UPDATE_TIME`, `REMARK`) VALUES (12, 12, 'HIDDENDANGERCHECK', 'HIDDENDANGERCHECK', '隐患排查', '隐患排查', 'Y', 0, NULL, '2023-07-25 18:35:01', '2023-07-25 18:35:01', '隐患排查流程'); |
||||||
|
-- 日志记录表添加错误日志字段 |
||||||
|
alter table `hzims_workflow_operation_log` add column `fault_log` varchar(255) default null comment '错误日志'; |
@ -1,14 +0,0 @@ |
|||||||
ALTER TABLE `hz_st_ex_task_user` MODIFY COLUMN `CLAIM_STATUS` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '领用状态 0:未领用 1:已领用 每条任务可以存在多个用户,但是只有一个领用人' AFTER `USER_ID`; |
|
||||||
|
|
||||||
ALTER TABLE `hz_st_ex_task_user` ADD COLUMN `user_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `TENANT_ID`; |
|
||||||
|
|
||||||
alter table `hz_st_ex_task` add column `hik_video_task_id` varchar(50) default null comment '海康录制视频任务ID'; |
|
||||||
alter table `hz_st_ex_task` add column `video_start_time` datetime default null comment '视频录制开始时间'; |
|
||||||
alter table `hz_st_ex_task` add column `video_end_time` datetime default null comment '视频录制开始时间'; |
|
||||||
alter table `hz_st_ex_task` add column `video_url` varchar(255) default null comment '手动录制视频地址'; |
|
||||||
-- 巡检摄像头管理添加设备编号 |
|
||||||
alter table `hz_st_camera_info` add column `em_code` varchar(50) default null comment '设备编号'; |
|
||||||
alter table `hz_st_robot` add column `code` varchar(50) default null comment '机器人编号'; |
|
||||||
alter table `hz_st_robot` add column `station_code` varchar(50) default null comment '站点编号'; |
|
||||||
alter table `hz_st_robot` add column `is_device_instance` tinyint(2) default 0 comment '是否绑定设备实例'; |
|
||||||
alter table `hz_st_re_object` change COLUMN `EM_CODE` `EM_CODE` VARCHAR(50) COMMENT '设备编号'; |
|
@ -1,173 +1,4 @@ |
|||||||
SET FOREIGN_KEY_CHECKS=0; |
alter table `hzims_work_ticket_finish` add column `end_principal_name` varchar(50) comment '工作终结负责人'; |
||||||
|
alter table `hzims_work_ticket_finish` add column `end_licensor_name` varchar(50) comment '工作终结许可人'; |
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `signage` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点标识-两票编码' AFTER `ticket_type`; |
alter table `hzims_work_ticket_finish` add column `finish_licensor_name` varchar(50) comment '工作票终结许可人'; |
||||||
|
alter table `hzims_work_ticket_info` add column `is_offline` tinyint(2) default 0 comment '是否线下 : 1-线下,0-线上'; |
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `signage_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号(原站点ID)' AFTER `signage`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_user_id` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户Id' AFTER `signage_code`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_task_id` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务Id' AFTER `flow_user_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_task_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名称' AFTER `flow_task_id`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `next_step_operator` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `flow_task_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_status` int(11) NULL DEFAULT NULL COMMENT '流程状态' AFTER `next_step_operator`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_description` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `project_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称' AFTER `flow_description`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `class_group_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组' AFTER `project_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_measure` ADD COLUMN `operation_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间' AFTER `matter_group`; |
|
||||||
|
|
||||||
CREATE TABLE `hzims-ticket`.`hzims_ticket_info_danger` ( |
|
||||||
`id` bigint(20) NULL DEFAULT NULL COMMENT '编号', |
|
||||||
`ticket_id` bigint(20) NULL DEFAULT NULL, |
|
||||||
`dangerous_point` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '危险点', |
|
||||||
`maintenance` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '安全措施', |
|
||||||
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', |
|
||||||
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', |
|
||||||
`is_deleted` tinyint(4) NULL DEFAULT 0 COMMENT '逻辑删除' |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
CREATE TABLE `hzims-ticket`.`hzims_work_ticket_finish` ( |
|
||||||
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', |
|
||||||
`ticket_id` bigint(20) NULL DEFAULT NULL COMMENT '工作票编号', |
|
||||||
`temp_ground_num` int(11) NULL DEFAULT NULL COMMENT '临时接地线', |
|
||||||
`temp_dismantle_num` int(11) NULL DEFAULT NULL COMMENT '临时拆除几组', |
|
||||||
`ground_num` int(11) NULL DEFAULT NULL COMMENT '接地线几组', |
|
||||||
`dismantle_num` int(11) NULL DEFAULT NULL COMMENT '拆除几组', |
|
||||||
`retain_num` int(11) NULL DEFAULT NULL COMMENT '保留几组', |
|
||||||
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
|
||||||
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
|
||||||
`principal` bigint(20) NULL DEFAULT NULL COMMENT '负责人名称', |
|
||||||
`licensor` bigint(20) NULL DEFAULT NULL COMMENT '许可人', |
|
||||||
`licensor_end_time` datetime(0) NULL DEFAULT NULL COMMENT '工作票终结时间', |
|
||||||
`principal_end_time` datetime(0) NULL DEFAULT NULL COMMENT '负责人工作结束时间', |
|
||||||
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', |
|
||||||
`tell_content` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '交底内容', |
|
||||||
`work_end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间', |
|
||||||
`brake_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刀闸编号', |
|
||||||
`guardian` bigint(20) NULL DEFAULT NULL COMMENT '监护人', |
|
||||||
`guardian_place` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '监护人地址', |
|
||||||
`other_items` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他事项', |
|
||||||
PRIMARY KEY (`id`) USING BTREE |
|
||||||
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作结束' ROW_FORMAT = Dynamic; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `power` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 工作条件( 停电或不停电)' AFTER `watch_principal_end_time`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `flow_user_id` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户Id' AFTER `step_operator`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `project_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称' AFTER `flow_task_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `job_receiver` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作接收人' AFTER `project_name`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `job_receiver_time` datetime(0) NULL DEFAULT NULL COMMENT '工作接收人时间' AFTER `job_receiver`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_safety` tinyint(1) NULL DEFAULT 0 COMMENT '安全隔离措施附页 (true,展示附件,false,不展示附件)' AFTER `job_receiver_time`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_hazard` tinyint(1) NULL DEFAULT 0 COMMENT '危险点分析与预控措施票 (true,展示附件,false,不展示附件)' AFTER `is_safety`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_railway` tinyint(1) NULL DEFAULT 0 COMMENT '动火工作票 (true,展示附件,false,不展示附件)' AFTER `is_hazard`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_limited` tinyint(1) NULL DEFAULT 0 COMMENT ' 有限空间监测记录单(true,展示附件,false,不展示附件)' AFTER `is_railway`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_start` tinyint(1) NULL DEFAULT 0 COMMENT '每日开工和收工时间附页' AFTER `is_limited`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `flow_description` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `follower_num` int(11) NULL DEFAULT 1 COMMENT '附页第几张' AFTER `flow_description`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `next_step_operator` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `input`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `step_operator` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前审批人' AFTER `next_step_operator`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `is_power`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `start_date_time`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `end_date_time`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `content`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `work_ticket_end_time`; |
|
||||||
|
|
||||||
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `tell_content`; |
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS=1; |
|
||||||
|
|
||||||
|
|
||||||
-- auto-generated definition |
|
||||||
-- auto-generated definition |
|
||||||
create table hzims_ticket_count |
|
||||||
( |
|
||||||
id bigint auto_increment comment '主键ID' |
|
||||||
primary key, |
|
||||||
date_time varchar(20) null comment '日期', |
|
||||||
dept_id bigint null comment '站点Id', |
|
||||||
dept_name varchar(100) null comment '站点名称', |
|
||||||
ticket_type varchar(255) null comment '票据类型', |
|
||||||
ticket_number int null comment '开票数量', |
|
||||||
ticket_complete_num int null comment '完成数量', |
|
||||||
ticket_delay_num int null comment '延期数量', |
|
||||||
ticket_proportion_num int null comment '合格数量', |
|
||||||
create_time datetime default CURRENT_TIMESTAMP null comment '创建时间', |
|
||||||
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '更新时间', |
|
||||||
is_deleted tinyint(1) default 0 null comment '逻辑删除', |
|
||||||
tenant_id varchar(12) null comment '租户ID', |
|
||||||
create_dept varchar(30) null comment '创建部门', |
|
||||||
status tinyint null, |
|
||||||
create_user bigint not null comment '创建人', |
|
||||||
update_user bigint null, |
|
||||||
invalidated_ticket_num int null comment '废票数量', |
|
||||||
wrong_ticket_num int null comment '错票数量', |
|
||||||
percent_pass_ticket varchar(50) null comment '合格率' |
|
||||||
) |
|
||||||
comment '两票统计分析' row_format = DYNAMIC; |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
insert into hzims_work_ticket_finish(ticket_id, ground_num, brake_number) |
|
||||||
select ticket_id, ground_switch_count,ground_wire_code |
|
||||||
from hzims_work_ticket_flow; |
|
||||||
|
|
||||||
|
|
||||||
alter table hzims_ticket_count add invalidated_ticket_num int null comment '废票数量'; |
|
||||||
|
|
||||||
# 工作票更新 |
|
||||||
update hzims_work_ticket_info set flow_task_name = '签发' where status = 1; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '收到工作票' where status = 2; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '许可人许可' where status = 3; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '确认条件具备' where status = 4; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '工作负责人确认工作' where status = 5; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '许可人确认工作结束' where status = 6; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '工作票终结' where status = 7; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '许可人延期确认' where status = 9; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '负责人延期确认' where status = 10; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '作废' where status = 11; |
|
||||||
update hzims_work_ticket_info set flow_task_name = '逾期' where status = 12; |
|
||||||
# 操作票更新 |
|
||||||
update hzims_standard_ticket_info set flow_task_name = '待监护人确认' where status = 1; |
|
||||||
update hzims_standard_ticket_info set flow_task_name = '待值班负责人确认' where status = 2; |
|
||||||
update hzims_standard_ticket_info set flow_task_name = '结束' where status = 3; |
|
||||||
update hzims_standard_ticket_info set flow_task_name = '终止' where status = 4; |
|
||||||
|
|
||||||
|
|
||||||
alter table hzims_ticket_count add wrong_ticket_num int null comment '错票数量'; |
|
||||||
alter table hzims_ticket_count add percent_pass_ticket varchar(50) null comment '合格率'; |
|
||||||
|
|
||||||
-- 两票开票视图 |
|
||||||
create or replace view v_hzims_ticket_info as |
|
||||||
select hzims_ticket_info.* from |
|
||||||
(select `id`, `process_instance_id`, `type`, `company`, `code`, `task_type`, `task_id`, `task_name`, `plan_start_time`, |
|
||||||
`plan_end_time`, `status`,`tenant_id`, `create_user`, `create_time`, `update_user`, `update_time`, `is_deleted`, |
|
||||||
`create_dept`,`flow_description` |
|
||||||
from hzims_work_ticket_info |
|
||||||
union all |
|
||||||
select `id`, `process_instance_id`, `ticket_type` type, `company`, `code`, `task_type`, `task_id`, `task_name`, |
|
||||||
`start_time` plan_start_time, `end_time` plan_end_time, `status`,`tenant_id`, `create_user`, `create_time`, |
|
||||||
`update_user`, `update_time`, `is_deleted`, `create_dept`,`flow_description` |
|
||||||
from hzims_standard_ticket_info |
|
||||||
) hzims_ticket_info where hzims_ticket_info.IS_DELETED = 0; |
|
Loading…
Reference in new issue