فهرست منبع

feat: only_full_group_by

xdd 1 ماه پیش
والد
کامیت
8db4c8e789
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      fs-service-system/src/main/resources/mapper/qw/QwWatchLogMapper.xml

+ 2 - 2
fs-service-system/src/main/resources/mapper/qw/QwWatchLogMapper.xml

@@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             resultType="com.fs.qw.vo.QwWatchLogAllStatisticsListVO">
             select
             any_value(company_id) as company_id,
-            company_user_id,line_time as create_time,
+            company_user_id,MIN(line_time) as create_time,
             COUNT(CASE WHEN day = 0 and status in (1,2) THEN 1 END) AS firstOnline,
             COUNT(CASE WHEN day = 0 and status=2 THEN 1 END) AS firstOver,
             COUNT(CASE WHEN day = 1 and status in (1,2) THEN 1 END) AS d1Online,
@@ -148,7 +148,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 <if test="videoId != null">
                     and video_id =#{videoId}
                 </if>
-                and DATE(line_time) between #{sDate} AND #{eDate} group by project,course_id,video_id,company_user_id
+                and DATE(line_time) between #{sDate} AND #{eDate} group by line_time,project,course_id,video_id,company_user_id
             </where>
     </select>
     <select id="selectQwWatchLogByCompanyUserIdCount" resultType="java.lang.Long">