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 5ea5ea87
authored
Apr 27, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
修改配置
2 parents
f5d90be2
b511ce25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
1.6.0_四月/1.6.0数据库SQL脚本.sql
1.6.0_四月/1.6.0配置中心配置.md
1.6.0_四月/1.6.0数据库SQL脚本.sql
View file @
5ea5ea8
...
...
@@ -77,6 +77,8 @@ ALTER TABLE `t_device_journey`
ADD
INDEX
idx_sn
(
`sn`
);
ALTER
TABLE
`t_device_journey`
ADD
INDEX
idx_vd_id
(
`vd_id`
);
ALTER
TABLE
`t_device_journey`
ADD
INDEX
idx_begin_time
(
`begin_time`
);
-- 设备电量表
create
table
t_device_power
...
...
@@ -171,4 +173,19 @@ INSERT INTO t_device_journey_overview (sn, vd_id, total_journey_count, distance,
select
sn
,
vd_id
,
count
(
1
),
sum
(
mileage
),
created_by
,
created_date
,
updated_date
from
t_device_journey
where
vd_id
is
not
null
group
by
sn
,
vd_id
;
\ No newline at end of file
group
by
sn
,
vd_id
;
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
index
idx_sn
(
sn
);
update
t_electric_fence_sns_copy
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
set
tefs
.
vd_id
=
tvd
.
id
where
tvd
.
sn
=
tefs
.
sn
and
tv
.
id
=
tvd
.
vehicle_id
;
update
t_electric_fence_sns
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
set
tefs
.
vd_id
=
tvd
.
id
where
tvd
.
sn
=
tefs
.
sn
and
tv
.
id
=
tvd
.
vehicle_id
;
\ No newline at end of file
1.6.0_四月/1.6.0配置中心配置.md
View file @
5ea5ea8
...
...
@@ -319,9 +319,9 @@ spring.jackson.default-property-inclusion=non_null
#database
spring.datasource.driver-class-
name
=
com.mysql.cj.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://
fin.db.glsx.com:3307/neshield?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries
=true
spring.datasource.username
=
jieru89
spring.datasource.password
=
[已加密]
2cabbdfdfc7c24eabe39a6982a8b9121
spring.datasource.url
=
jdbc:mysql://
supplychain.db.glsx.com:13306/neshield?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval
=true
spring.datasource.username
=
biz_neshield
spring.datasource.password
=
[已加密]
d854dc38160f1ab7aff0a4e6aec8b6b7
# Hikari
spring.datasource.type
=
com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-
idle
=
5
...
...
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