Commit 25dbda59 by 杨林龙

试驾数据统计时 添加vdid字段

1 parent 0ba9b1c8
...@@ -30,11 +30,12 @@ ...@@ -30,11 +30,12 @@
</select> </select>
<insert id="statisticsAndInsertDriveDataEveryDay"> <insert id="statisticsAndInsertDriveDataEveryDay">
INSERT t_statistics_fence_drive (sn ,drive_num ,drive_total ,drive_time ,created_time) INSERT t_statistics_fence_drive (sn ,drive_num ,drive_total ,drive_time ,vd_id ,created_time)
select sn, select sn ,
sum(case when percent >= 50 then 1 else 0 end) as driveNum, sum(case when percent >= 50 then 1 else 0 end) as driveNum ,
count(1) as driveTotal, count(1) as driveTotal ,
left(journey_time,10) as driveTime, left(journey_time,10) as driveTime ,
vd_id ,
NOW() NOW()
from t_electric_fence_drive from t_electric_fence_drive
where left(journey_time,10) = #{yesterDayFormat} where left(journey_time,10) = #{yesterDayFormat}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!