Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 13f21af4
authored
Nov 19, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化不在店数据统计BUG
1 parent
a985f71a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
src/main/resources/mapper/ElectricInStoreDriveMapper.xml
View file @
13f21af
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<select
id=
"getInStoreDataList"
resultMap=
"InStoreDataMap"
>
<select
id=
"getInStoreDataList"
resultMap=
"InStoreDataMap"
>
select
select
sum(case when teid.gps_state = 1 then 0 when teid.gps_state = 2 then 1 else 0 end)
as instoreCnt,
case when sum(case when teid.gps_state = 2 then 1 else 0 end) = count(1) then 1 else 0 end
as instoreCnt,
teid.gps_time ,
teid.gps_time ,
day(teid.gps_time) as dayOfMonth
day(teid.gps_time) as dayOfMonth
from t_electric_instore_drive teid
from t_electric_instore_drive teid
...
@@ -74,6 +74,6 @@
...
@@ -74,6 +74,6 @@
</if>
</if>
and tvd.vehicle_id = #{vehicleId}
and tvd.vehicle_id = #{vehicleId}
</where>
</where>
group by
tvd.vehicle_id,
left(teid.gps_time,10)
group by left(teid.gps_time,10)
</select>
</select>
</mapper>
</mapper>
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