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 a54267df
authored
Apr 28, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
添加数据库脚本
2 parents
0a5b5d87
3684e5dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
1.6.0_四月/1.6.0数据库SQL脚本release.sql
1.6.0_四月/1.6.0数据库SQL脚本release.sql
View file @
a54267d
...
@@ -101,20 +101,15 @@ ALTER TABLE `t_device_journey_overview`
...
@@ -101,20 +101,15 @@ ALTER TABLE `t_device_journey_overview`
ALTER
TABLE
`t_device_journey_overview`
ALTER
TABLE
`t_device_journey_overview`
ADD
INDEX
idx_vd_id
(
`vd_id`
);
ADD
INDEX
idx_vd_id
(
`vd_id`
);
INSERT
INTO
t_dict_data
(
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
is_default
,
enable_status
,
remark
,
del_flag
,
created_by
,
created_date
)
VALUES
(
1
,
'batchLinkFenceSns'
,
'https://wx.glsx.com.cn/upload/salesexcel/批量导入关联设备模板.xlsx'
,
'excelTemplate'
,
'N'
,
1
,
'批量导入关联设备excel模板'
,
0
,
1
,
sysdate
());
alter
table
t_electric_fence_sns_copy
add
index
idx_sn
(
sn
);
alter
table
t_electric_fence_sns_copy
add
index
idx_sn
(
sn
);
alter
table
t_electric_fence
modify
fence_name
varchar
(
256
)
null
comment
'栅栏名称'
;
alter
table
t_electric_fence
modify
fence_name
varchar
(
256
)
null
comment
'栅栏名称'
;
alter
table
t_vehicle
modify
engine
varchar
(
52
)
null
comment
'发动机'
;
alter
table
t_vehicle
modify
engine
varchar
(
52
)
null
comment
'发动机'
;
alter
table
t_workorder_vehicle
modify
engine_no
varchar
(
52
)
null
comment
'发动机号'
;
alter
table
t_workorder_vehicle
modify
engine_no
varchar
(
52
)
null
comment
'发动机号'
;
INSERT
INTO
t_dict_data
(
dict_sort
,
dict_label
,
dict_value
,
dict_type
,
is_default
,
enable_status
,
remark
,
del_flag
,
created_by
,
created_date
)
VALUES
(
1
,
'batchLinkFenceSns'
,
'https://wx.glsx.com.cn/upload/salesexcel/批量导入关联设备模板.xlsx'
,
'excelTemplate'
,
'N'
,
1
,
'批量导入关联设备excel模板'
,
0
,
1
,
sysdate
());
-- 短信模板
-- 短信模板
alter
table
t_message_template
change
type
send_type
varchar
(
255
)
null
comment
'消息类型:短信SMS、邮件MAIL、公众号WXMP、小程序WXMA'
;
alter
table
t_message_template
change
type
send_type
varchar
(
255
)
null
comment
'消息类型:短信SMS、邮件MAIL、公众号WXMP、小程序WXMA'
;
alter
table
t_message_log
change
type
send_type
varchar
(
255
)
null
comment
'消息类型:短信SMS、邮件MAIL、公众号WXMP、小程序WXMA'
;
alter
table
t_message_log
change
type
send_type
varchar
(
255
)
null
comment
'消息类型:短信SMS、邮件MAIL、公众号WXMP、小程序WXMA'
;
...
@@ -126,6 +121,7 @@ INSERT INTO t_message_template (template, subject, content, send_type, source, t
...
@@ -126,6 +121,7 @@ INSERT INTO t_message_template (template, subject, content, send_type, source, t
INSERT
INTO
t_message_template
(
template
,
subject
,
content
,
send_type
,
source
,
type
,
enable_status
,
del_flag
,
created_date
,
created_by
)
VALUES
(
'SMS_TEMPLATE_LEAVE_FENCE'
,
null
,
'【广联赛讯】尊敬的{0}先生/女士,(车牌{1})车辆于(时间{2})发生出(围栏名称{3})围栏报警,请您留意具体车辆。'
,
'SMS'
,
'neshield_fence_warn'
,
1
,
1
,
0
,
sysdate
(),
1
);
INSERT
INTO
t_message_template
(
template
,
subject
,
content
,
send_type
,
source
,
type
,
enable_status
,
del_flag
,
created_date
,
created_by
)
VALUES
(
'SMS_TEMPLATE_LEAVE_FENCE'
,
null
,
'【广联赛讯】尊敬的{0}先生/女士,(车牌{1})车辆于(时间{2})发生出(围栏名称{3})围栏报警,请您留意具体车辆。'
,
'SMS'
,
'neshield_fence_warn'
,
1
,
1
,
0
,
sysdate
(),
1
);
INSERT
INTO
t_message_template
(
template
,
subject
,
content
,
send_type
,
source
,
type
,
enable_status
,
del_flag
,
created_date
,
created_by
)
VALUES
(
'SMS_TEMPLATE_ENTER_LEAVE_FENCE'
,
null
,
'【广联赛讯】尊敬的{0}先生/女士,(车牌{1})车辆于(时间{2})发生进出(围栏名称{3})围栏报警,请您留意具体车辆。'
,
'SMS'
,
'neshield_fence_warn'
,
1
,
1
,
0
,
sysdate
(),
1
);
INSERT
INTO
t_message_template
(
template
,
subject
,
content
,
send_type
,
source
,
type
,
enable_status
,
del_flag
,
created_date
,
created_by
)
VALUES
(
'SMS_TEMPLATE_ENTER_LEAVE_FENCE'
,
null
,
'【广联赛讯】尊敬的{0}先生/女士,(车牌{1})车辆于(时间{2})发生进出(围栏名称{3})围栏报警,请您留意具体车辆。'
,
'SMS'
,
'neshield_fence_warn'
,
1
,
1
,
0
,
sysdate
(),
1
);
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_ENTER_FENCE'
;
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_ENTER_FENCE'
;
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_LEAVE_FENCE'
;
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_LEAVE_FENCE'
;
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生进出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_ENTER_LEAVE_FENCE'
;
update
t_message_template
set
content
=
'【广联赛讯】尊敬的{0}先生/女士,{1}车辆于{2}发生进出{3}围栏报警,请您留意具体车辆。'
where
template
=
'SMS_TEMPLATE_ENTER_LEAVE_FENCE'
;
...
@@ -136,12 +132,9 @@ ALTER TABLE `t_zhongli_department` ADD COLUMN user_account VARCHAR(50) DEFAULT N
...
@@ -136,12 +132,9 @@ ALTER TABLE `t_zhongli_department` ADD COLUMN user_account VARCHAR(50) DEFAULT N
ALTER
TABLE
`t_zhongli_department`
ADD
COLUMN
user_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'用户ID'
;
ALTER
TABLE
`t_zhongli_department`
ADD
COLUMN
user_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'用户ID'
;
ALTER
TABLE
`t_zhongli_department`
ADD
COLUMN
department_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'组织ID'
;
ALTER
TABLE
`t_zhongli_department`
ADD
COLUMN
department_id
INT
(
11
)
DEFAULT
NULL
COMMENT
'组织ID'
;
-- 新增围栏设备vdid
alter
table
t_electric_fence_sns
add
vd_id
int
null
comment
'车辆设备绑定关系'
after
sn
;
alter
table
t_electric_fence_sns
add
vd_id
int
null
comment
'车辆设备绑定关系'
after
sn
;
alter
table
t_electric_fence_sns_copy
add
vd_id
int
null
comment
'车辆设备绑定关系'
after
sn
;
alter
table
t_electric_fence_sns_copy
add
vd_id
int
null
comment
'车辆设备绑定关系'
after
sn
;
-- 更新围栏设备vdid
-- 更新围栏设备vdid
update
t_electric_fence_sns_copy
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
update
t_electric_fence_sns_copy
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
set
tefs
.
vd_id
=
tvd
.
id
set
tefs
.
vd_id
=
tvd
.
id
...
...
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