zyp 2 týždňov pred
rodič
commit
278815e156

+ 1 - 1
fs-service-system/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -1224,7 +1224,7 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
 //        log.info("看课redis缓存key:{}", redisKey);
         try {
             String durationStr = redisCache.getCacheObject(redisKey);
-            log.info("看课记录:{}", durationStr);
+//            log.info("看课记录:{}", durationStr);
             long duration = durationStr != null ? Long.parseLong(durationStr) : 0L;
 
             // 更新Redis中的观看时长

+ 1 - 1
fs-service-system/src/main/resources/application-common.yml

@@ -41,7 +41,7 @@ server:
 # 日志配置
 logging:
   level:
-    com.fs: debug
+    com.fs: info
     org.springframework: warn
 # Spring配置
 spring:

+ 1 - 0
fs-service-system/src/main/resources/mapper/course/FsUserCourseVideoRedPackageMapper.xml

@@ -147,6 +147,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="companyId != null "> and company_id = #{companyId}</if>
         <if test="periodId != null "> and period_id = #{periodId}</if>
         </where>
+        order by id desc limit 1
     </select>
 
 </mapper>