浏览代码

fix: 进线客户统计

xdd 1 月之前
父节点
当前提交
b6b1f76842
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      fs-service-system/src/main/resources/mapper/qw/QwWatchLogMapper.xml

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

@@ -203,8 +203,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         ) AS grouped_data
     </select>
     <select id="selectQwWatchLogAllStatisticsListVONewCount" resultType="java.lang.Long">
+        select count(*) from(
         select
-        count(1)
+        1
         from hy_watch_log
         <where>
             <if test="companyUserIds != null">
@@ -224,6 +225,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             </if>
             and DATE(line_time) between #{sDate} AND #{eDate} group by project,course_id,video_id
         </where>
+
+        )t
     </select>
 
     <insert id="insertQwWatchLog" parameterType="QwWatchLog" useGeneratedKeys="true" keyProperty="id">