Commit be0c600f by 杨林龙

1.50.0 开发1.50.0需求版本 优化用户行为列表返回结果

1 parent 363c649c
...@@ -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,
COUNT(*) AS weekNum sum(mileage) 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,7 @@ ...@@ -66,7 +66,7 @@
<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, COUNT(*) AS dayNum DATE(begin_time) AS dayInt, sum(mileage) 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!