Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 832e8ae9
authored
Aug 29, 2024
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改SQL
1 parent
4ed093ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
46 deletions
1.73.0_八月/1.73.0数据库SQL脚本.sql
1.73.0_八月/1.73.0数据库SQL脚本.sql
View file @
832e8ae
...
@@ -28,54 +28,44 @@ CREATE TABLE `d_vehicle_workorder_log` (
...
@@ -28,54 +28,44 @@ CREATE TABLE `d_vehicle_workorder_log` (
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'车辆工单日志表'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'车辆工单日志表'
;
create
table
d_vehicle_workorder_chaiji
DROP
TABLE
IF
EXISTS
`d_vehicle_workorder_chaiji`
;
(
CREATE
TABLE
`d_vehicle_workorder_chaiji`
(
id
int
auto_increment
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
primary
key
,
`class_id`
int
(
11
)
DEFAULT
NULL
COMMENT
'分类ID'
,
class_id
int
null
comment
'分类ID'
,
`work_order_id`
int
(
11
)
NOT
NULL
COMMENT
'系统工单号'
,
work_order_id
int
not
null
comment
'系统工单号'
,
`rmsqbh`
varchar
(
128
)
NOT
NULL
COMMENT
'海通拆机工单号'
,
rmsqbh
varchar
(
128
)
not
null
comment
'海通拆机工单号'
,
`sqbh`
varchar
(
128
)
NOT
NULL
COMMENT
'海通工单编号'
,
sqbh
varchar
(
128
)
not
null
comment
'海通工单编号'
,
`del_sign`
tinyint
(
4
)
NOT
NULL
COMMENT
'拆除标识 1:按合同删,2:按设备删'
,
del_sign
tinyint
not
null
comment
'拆除标识 1:按合同删,2:按设备删'
,
`order_status`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'拆机工单状态 1-等待中 2-已取消 3-已派单 4-已完成'
,
order_status
tinyint
null
comment
'拆机工单状态 1-等待中 2-已取消 3-已派单 4-已完成'
,
`stand_no`
varchar
(
50
)
NOT
NULL
COMMENT
'车架号'
,
stand_no
varchar
(
50
)
not
null
comment
'车架号'
,
`contract_no`
varchar
(
128
)
NOT
NULL
COMMENT
'合同编号'
,
contract_no
varchar
(
128
)
not
null
comment
'合同编号'
,
`imeis`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'设备集合, delSign=2时必填 JsonArray格式'
,
imeis
varchar
(
255
)
null
comment
'设备集合, delSign=2时必填 JsonArray格式'
,
`picture`
varchar
(
2000
)
DEFAULT
NULL
COMMENT
'审核照片url 多个以;分隔'
,
picture
varchar
(
2000
)
null
comment
'审核照片url 多个以;分隔'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
create_time
datetime
not
null
comment
'创建时间'
,
`create_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'创建人id'
,
create_by
int
null
comment
'创建人id'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
update_time
datetime
null
comment
'更新时间'
,
`update_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'更新人id'
,
update_by
int
null
comment
'更新人id'
,
`deleted_flag`
char
(
1
)
NOT
NULL
COMMENT
'N-未删除 D-已删除'
,
deleted_flag
char
not
null
comment
'N-未删除 D-已删除'
PRIMARY
KEY
(
`id`
),
)
KEY
`index_work_order_id`
(
`work_order_id`
),
comment
'海通拆机工单'
;
KEY
`index_sqbh`
(
`sqbh`
),
KEY
`index_rmsqbh`
(
`rmsqbh`
)
create
index
index_rmsqbh
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'海通拆机工单'
;
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
DROP
TABLE
IF
EXISTS
`d_vehicle_workorder_chaiji_log`
;
on
d_vehicle_workorder_chaiji_log
(
chaiji_id
);
CREATE
TABLE
`d_vehicle_workorder_chaiji_log`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`chaiji_id`
int
(
11
)
NOT
NULL
COMMENT
'海通拆机工单id'
,
`operate_type`
tinyint
(
4
)
NOT
NULL
COMMENT
'操作类型 1-创建拆机单 2-触发"相同车架号+不同设备组合"派单 3-72小时后自动派单 4-edun取消拆机单 5-触发“相同车架号+相同设备组合”取消拆机单 6-包活干取消拆机单 7-已完成 8-重新派单'
,
`create_time`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`create_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'创建人id'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'更新时间'
,
`update_by`
int
(
11
)
DEFAULT
NULL
COMMENT
'更新人id'
,
`deleted_flag`
char
(
1
)
NOT
NULL
COMMENT
'N-未删除 D-已删除'
,
PRIMARY
KEY
(
`id`
),
KEY
`index_chaiji_id`
(
`chaiji_id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'海通拆机工单操作日志'
;
-- glsx_car_service
-- glsx_car_service
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment