Commit 42c8fc4a by 向延琳

修改测试配置

1 parent 73988ec0
...@@ -121,3 +121,23 @@ VALUES (1, 'batchLinkFenceSns', 'https://wx.glsx.com.cn/upload/salesexcel/批量 ...@@ -121,3 +121,23 @@ VALUES (1, 'batchLinkFenceSns', 'https://wx.glsx.com.cn/upload/salesexcel/批量
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 '发动机号';
-- 里程初始化
-- 更新vdId
update t_device_journey tdj
INNER JOIN t_vehicle_device tvd on tvd.sn = tdj.sn
LEFT JOIN t_vehicle tv on tv.id = tvd.vehicle_id
SET tdj.vd_id = tvd.id,
tdj.created_by = tv.created_by
where tvd.del_flag = 0
and tdj.begin_time >= tv.created_date
and tvd.bind_status = 1
and tdj.id < 500000 and tdj.id>= 0;
# 更新总里程
INSERT INTO t_device_journey_overview (sn, vd_id, total_journey_count, distance)
select sn, vd_id, count(1), sum(mileage)
from t_device_journey
where vd_id is not null
group by sn , vd_id;
\ No newline at end of file \ No newline at end of file
...@@ -215,7 +215,7 @@ mq.kafka.device.battery.topic=topic_device_battery ...@@ -215,7 +215,7 @@ mq.kafka.device.battery.topic=topic_device_battery
```properties ```properties
#设备行程 #设备行程
mq.kafka.device.journey.topic=neshield_journey neshield_journey_new
#设备电量 #设备电量
mq.kafka.device.battery.topic=topic_device_battery mq.kafka.device.battery.topic=topic_device_battery
``` ```
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!