Commit 5ea5ea87 by 杨林龙

修改配置

2 parents f5d90be2 b511ce25
...@@ -77,6 +77,8 @@ ALTER TABLE `t_device_journey` ...@@ -77,6 +77,8 @@ ALTER TABLE `t_device_journey`
ADD INDEX idx_sn (`sn`); ADD INDEX idx_sn (`sn`);
ALTER TABLE `t_device_journey` ALTER TABLE `t_device_journey`
ADD INDEX idx_vd_id (`vd_id`); ADD INDEX idx_vd_id (`vd_id`);
ALTER TABLE `t_device_journey`
ADD INDEX idx_begin_time (`begin_time`);
-- 设备电量表 -- 设备电量表
create table t_device_power create table t_device_power
...@@ -171,4 +173,19 @@ INSERT INTO t_device_journey_overview (sn, vd_id, total_journey_count, distance, ...@@ -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 select sn, vd_id, count(1), sum(mileage), created_by, created_date, updated_date
from t_device_journey from t_device_journey
where vd_id is not null where vd_id is not null
group by sn, vd_id;
\ No newline at end of file \ 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 \ No newline at end of file
...@@ -319,9 +319,9 @@ spring.jackson.default-property-inclusion=non_null ...@@ -319,9 +319,9 @@ spring.jackson.default-property-inclusion=non_null
#database #database
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver 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.url=jdbc:mysql://supplychain.db.glsx.com:13306/neshield?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=jieru89 spring.datasource.username=biz_neshield
spring.datasource.password=[已加密]2cabbdfdfc7c24eabe39a6982a8b9121 spring.datasource.password=[已加密]d854dc38160f1ab7aff0a4e6aec8b6b7
# Hikari # Hikari
spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5 spring.datasource.hikari.minimum-idle=5
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!