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 31ffc7d9
authored
Mar 25, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户行为统计除以1000
1 parent
850e5b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/resources/mapper/DeviceJourneyMapper.xml
src/main/resources/mapper/DeviceJourneyMapper.xml
View file @
31ffc7d
...
...
@@ -56,7 +56,7 @@
<select
id=
"statisticsDeviceJourneyWithWeek"
resultType=
"cn.com.glsx.admin.modules.model.dto.UserBehaviorWeekDTO"
>
SELECT WEEK(begin_time) AS weekInt,
sum(mileage) AS weekNum
sum(mileage)
/1000
AS weekNum
FROM t_device_journey
WHERE sn = #{sn}
GROUP BY weekInt
...
...
@@ -66,7 +66,8 @@
<select
id=
"statisticsDeviceJourneyWithDay"
resultType=
"cn.com.glsx.admin.modules.model.dto.UserBehaviorDayDTO"
>
SELECT
DATE(begin_time) AS dayInt, sum(mileage) AS dayNum
DATE(begin_time) AS dayInt,
sum(mileage)/1000 AS dayNum
FROM t_device_journey
WHERE sn = #{sn}
GROUP BY dayInt
...
...
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