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 9bda5045
authored
Nov 12, 2024
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交SQL
1 parent
22e64583
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
1.76.0_十一月/1.76.0数据库SQL脚本.sql
1.76.0_十一月/1.76.0数据库SQL脚本.sql
View file @
9bda504
-- glsx-car_service
create
table
sys_car_series_library
(
id
int
auto_increment
comment
'车型库id'
primary
key
,
library_name
varchar
(
30
)
not
null
comment
'车型库名称'
,
canceled
tinyint
(
2
)
default
1
not
null
comment
'是否启用:0停用,1启用'
,
car_series_json
mediumtext
not
null
comment
'车型数据 json数组格式'
,
created_by
varchar
(
64
)
not
null
comment
'创建人'
,
created_date
datetime
not
null
comment
'创建时间'
,
updated_by
varchar
(
64
)
not
null
comment
'修改人'
,
updated_date
datetime
not
null
comment
'修改时间'
,
deleted_flag
char
default
'N'
not
null
comment
'删除标识(D:已删除;N:未删除)'
)
comment
'车型库'
charset
=
utf8mb4
;
create
table
sys_car_series_user
(
id
int
auto_increment
comment
'快递单ID'
primary
key
,
library_id
int
not
null
comment
'车型库id 对应sys_car_series_library表主键'
,
user_id
int
not
null
comment
'所属对象id'
,
user_type
tinyint
not
null
comment
'所属用户类型(1:服务商,2:门店)'
,
created_by
varchar
(
64
)
not
null
comment
'创建人'
,
created_date
datetime
not
null
comment
'创建时间'
,
updated_by
varchar
(
64
)
not
null
comment
'修改人'
,
updated_date
datetime
not
null
comment
'修改时间'
,
deleted_flag
char
default
'N'
not
null
comment
'删除标识(D:已删除;N:未删除)'
)
comment
'用户车型库'
charset
=
utf8mb4
;
create
index
library_id_index
on
sys_car_series_user
(
library_id
);
create
index
user_id_index
on
sys_car_series_user
(
user_id
);
-- 以下SQL需要发邮件,让运维手动执行
INSERT
INTO
glsx_car_service
.
sys_service_item
(
service_name
,
service_code
,
type
,
img_path
,
is_update_info
,
is_audit
,
is_verify_vin
,
is_delivery
,
device_verify_url
,
push_url
,
remark
,
create_by
,
create_time
,
update_by
,
update_time
)
VALUES
(
'单有线+单无线设备(襄本)'
,
'NES_XIANGBEN011'
,
1
,
'https://bhg.didihu.com.cn/group1/M00/3F/D2/wKgFDWcxrSGAW-4OAACUFhgZuXM456.png'
,
0
,
0
,
0
,
0
,
'sys_device_verify_url-glsx_nes'
,
'sys_order_sync_url-glsx_nes'
,
'湖北襄本'
,
1431
,
'2024-11-11 14:57:11'
,
1431
,
'2024-11-11 16:24:16'
);
SET
@
last_id
=
LAST_INSERT_ID
();
INSERT
INTO
glsx_car_service
.
sys_service_item_device_config
(
service_item_id
,
device_type
,
is_verify_stock
,
is_install_location
,
device_verify_uri
,
sync_uri
,
sort
,
remark
)
VALUES
(
@
last_id
,
'sys_order_service_item_gps'
,
0
,
1
,
''
,
''
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_device_config
(
service_item_id
,
device_type
,
is_verify_stock
,
is_install_location
,
device_verify_uri
,
sync_uri
,
sort
,
remark
)
VALUES
(
@
last_id
,
'sys_order_service_item_gps_wireless'
,
0
,
1
,
''
,
''
,
1
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D4/wKgFDWcxvxCAOrVkAAkcXmIEQyw763.png'
,
1
,
1
,
'图1车牌与有线设备合影'
,
'车牌与有线设备合影'
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D5/wKgFDWcxvxaAE37HAAy_v9a5l50710.png'
,
1
,
1
,
'图2车牌与无线设备合影'
,
'车牌与无线设备合影'
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D5/wKgFDWcxvx2AMqEtAAqXCvPpdO8288.png'
,
1
,
1
,
'图3设备安装位置-手势示意'
,
'照片应拍摄设备的藏匿位置,如位置隐蔽可用手辅助示意。'
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D5/wKgFDWcxvyOAZIxJAAgXCY0uVrM576.png'
,
1
,
1
,
'图4设备安装位置-手势示意'
,
'照片应拍摄设备的藏匿位置,如位置隐蔽可用手辅助示意。'
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D5/wKgFDWcxvymAPvphAA2tCJc6l5w395.png'
,
1
,
1
,
'图5车架号与有线设备合影'
,
'车架号与有线设备合影'
,
0
,
''
);
INSERT
INTO
glsx_car_service
.
sys_service_item_photo_config
(
service_item_id
,
icon_path
,
is_required
,
is_album_select
,
photo_name
,
photo_desc
,
sort
,
remark
)
VALUES
(
@
last_id
,
'https://bhg.didihu.com.cn/group1/M00/3F/D5/wKgFDWcxvy6Af5vbAAZAiRX7W9c881.png'
,
1
,
1
,
'图6车架号与无线设备合影'
,
'车架号与无线设备合影'
,
0
,
''
);
\ No newline at end of file
\ No newline at end of file
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