Browse Source

fix:销售app会员详情统计调整

caoliqin 1 week ago
parent
commit
86c9176fa1

+ 2 - 2
fs-service-system/src/main/resources/mapper/store/FsUserMapper.xml

@@ -644,11 +644,11 @@
 
     <select id="getCountWatchCourse" resultType="UserDetailsVO">
         SELECT
-        <if test="dateTag == null or dateTag =='' ">
+        <if test="dateTag == null or dateTag =='' or dateTag == '近七天' ">
             ifnull( sum(complete_watch_count), 0 ) AS completeWatchCount ,
             ifnull( sum(watch_times), 0 ) AS watchTimes,
         </if>
-        <if test="dateTag != null and dateTag !='' ">
+        <if test="dateTag != null and dateTag !='' and dateTag != '近七天' ">
             ifnull( complete_watch_count, 0 ) AS completeWatchCount ,
             ifnull( watch_times, 0 ) AS watchTimes,
         </if>