Commit 16a7abd4 by chenxi

1.73.0 SQL

1 parent 689a86e8
...@@ -5,6 +5,9 @@ ADD COLUMN `single_trailer` TINYINT(1) NULL DEFAULT 0 COMMENT '是否单融挂 ...@@ -5,6 +5,9 @@ ADD COLUMN `single_trailer` TINYINT(1) NULL DEFAULT 0 COMMENT '是否单融挂
ALTER TABLE `d_vehicle_workorder` ALTER TABLE `d_vehicle_workorder`
ADD COLUMN `other_info` TEXT NULL COMMENT '工单其它关键信息,json结构' AFTER `single_trailer`; ADD COLUMN `other_info` TEXT NULL COMMENT '工单其它关键信息,json结构' AFTER `single_trailer`;
alter table d_vehicle_workorder
modify contractNo varchar(50) null comment '合同编号';
-- `gps`增加工单日志表 -- `gps`增加工单日志表
CREATE TABLE `d_vehicle_workorder_log` ( CREATE TABLE `d_vehicle_workorder_log` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,
...@@ -17,3 +20,54 @@ CREATE TABLE `d_vehicle_workorder_log` ( ...@@ -17,3 +20,54 @@ CREATE TABLE `d_vehicle_workorder_log` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='车辆工单日志表'; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='车辆工单日志表';
create table d_vehicle_workorder_chaiji
(
id int auto_increment
primary key,
class_id int null comment '分类ID',
work_order_id int not null comment '系统工单号',
rmsqbh varchar(128) not null comment '海通拆机工单号',
sqbh varchar(128) not null comment '海通工单编号',
del_sign tinyint not null comment '拆除标识 1:按合同删,2:按设备删',
order_status tinyint null comment '拆机工单状态 1-等待中 2-已取消 3-已派单 4-已完成',
stand_no varchar(50) not null comment '车架号',
contract_no varchar(128) not null comment '合同编号',
imeis varchar(255) null comment '设备集合, delSign=2时必填 JsonArray格式',
picture varchar(2000) null comment '审核照片url 多个以;分隔',
create_time datetime not null comment '创建时间',
create_by int null comment '创建人id',
update_time datetime null comment '更新时间',
update_by int null comment '更新人id',
deleted_flag char not null comment 'N-未删除 D-已删除'
)
comment '海通拆机工单';
create index index_rmsqbh
on d_vehicle_workorder_chaiji (rmsqbh);
create index index_sqbh
on d_vehicle_workorder_chaiji (sqbh);
create index index_work_order_id
on d_vehicle_workorder_chaiji (work_order_id);
create table d_vehicle_workorder_chaiji_log
(
id int auto_increment
primary key,
chaiji_id int not null comment '海通拆机工单id',
operate_type tinyint not null comment '操作类型 1-创建拆机单 2-触发"相同车架号+不同设备组合"派单 3-72小时后自动派单 4-edun取消拆机单 5-触发“相同车架号+相同设备组合”取消拆机单 6-包活干取消拆机单 7-已完成 8-重新派单',
create_time datetime not null comment '创建时间',
create_by int null comment '创建人id',
update_time datetime null comment '更新时间',
update_by int null comment '更新人id',
deleted_flag char not null comment 'N-未删除 D-已删除'
)
comment '海通拆机工单操作日志';
create index index_chaiji_id
on d_vehicle_workorder_chaiji_log (chaiji_id);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!