Commit 31ffc7d9 by 杨林龙

用户行为统计除以1000

1 parent 850e5b18
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<select id="statisticsDeviceJourneyWithWeek" <select id="statisticsDeviceJourneyWithWeek"
resultType="cn.com.glsx.admin.modules.model.dto.UserBehaviorWeekDTO"> resultType="cn.com.glsx.admin.modules.model.dto.UserBehaviorWeekDTO">
SELECT WEEK(begin_time) AS weekInt, SELECT WEEK(begin_time) AS weekInt,
sum(mileage) AS weekNum sum(mileage)/1000 AS weekNum
FROM t_device_journey FROM t_device_journey
WHERE sn = #{sn} WHERE sn = #{sn}
GROUP BY weekInt GROUP BY weekInt
...@@ -66,7 +66,8 @@ ...@@ -66,7 +66,8 @@
<select id="statisticsDeviceJourneyWithDay" <select id="statisticsDeviceJourneyWithDay"
resultType="cn.com.glsx.admin.modules.model.dto.UserBehaviorDayDTO"> resultType="cn.com.glsx.admin.modules.model.dto.UserBehaviorDayDTO">
SELECT SELECT
DATE(begin_time) AS dayInt, sum(mileage) AS dayNum DATE(begin_time) AS dayInt,
sum(mileage)/1000 AS dayNum
FROM t_device_journey FROM t_device_journey
WHERE sn = #{sn} WHERE sn = #{sn}
GROUP BY dayInt GROUP BY dayInt
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!