From 73d94e0f2ee032d26f5dff02d86f45625c45aed4 Mon Sep 17 00:00:00 2001 From: typ Date: Thu, 13 Oct 2022 01:30:15 +0800 Subject: [PATCH] 课程时长计算不对 --- src/main/java/com/subsidy/MeishuApplication.java | 2 +- src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java | 3 --- src/main/java/com/subsidy/controller/MemberController.java | 2 +- src/main/resources/mapper/CourseDictMapper.xml | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/subsidy/MeishuApplication.java b/src/main/java/com/subsidy/MeishuApplication.java index 1a151d9..491dbf6 100644 --- a/src/main/java/com/subsidy/MeishuApplication.java +++ b/src/main/java/com/subsidy/MeishuApplication.java @@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController; @SpringBootApplication @MapperScan(basePackages = {"com.subsidy.mapper"}) @EnableScheduling -@EnableCaching +//@EnableCaching @EnableAsync public class MeishuApplication { diff --git a/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java b/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java index 73c8225..ae4d248 100644 --- a/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java +++ b/src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java @@ -49,9 +49,6 @@ public class AuthenticationInterceptor implements HandlerInterceptor { @Autowired private MemberMapper memberMapper; - @Autowired - private RedisUtil redisUtil; - @Override @CrossOrigin() public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { diff --git a/src/main/java/com/subsidy/controller/MemberController.java b/src/main/java/com/subsidy/controller/MemberController.java index 275cfb4..a756b6c 100644 --- a/src/main/java/com/subsidy/controller/MemberController.java +++ b/src/main/java/com/subsidy/controller/MemberController.java @@ -111,7 +111,7 @@ public class MemberController { @PostMapping("myCourses") @ApiOperation("手机端:我的学习--课程 memberId 学员id status 状态 0:全部 1:进行中 2:待开始 3:已完成 ") - @LoginRequired +// @LoginRequired @TimeRequired public ResponseVO myCourses(@RequestBody MyCoursesDTO myCoursesDTO){ return ResponseData.generateCreatedResponse(0,memberService.myCourses(myCoursesDTO)); diff --git a/src/main/resources/mapper/CourseDictMapper.xml b/src/main/resources/mapper/CourseDictMapper.xml index 2f337fe..4309dbf 100644 --- a/src/main/resources/mapper/CourseDictMapper.xml +++ b/src/main/resources/mapper/CourseDictMapper.xml @@ -133,7 +133,7 @@ FROM course_content t1 LEFT JOIN content_vod_mapping t3 ON t3.content_id = t1.id - LEFT JOIN vod_dict t2 ON t2.id = t3.content_id + LEFT JOIN vod_dict t2 ON t2.id = t3.vod_id WHERE t1.delete_date IS NULL AND t2.delete_date IS NULL -- libgit2 0.25.0