Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
涂亚平
/
subsidy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 73d94e0f
authored
Oct 13, 2022
by
涂亚平
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程时长计算不对
1 parent
2058feef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
src/main/java/com/subsidy/MeishuApplication.java
src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java
src/main/java/com/subsidy/controller/MemberController.java
src/main/resources/mapper/CourseDictMapper.xml
src/main/java/com/subsidy/MeishuApplication.java
View file @
73d94e0
...
...
@@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@MapperScan
(
basePackages
=
{
"com.subsidy.mapper"
})
@EnableScheduling
@EnableCaching
//
@EnableCaching
@EnableAsync
public
class
MeishuApplication
{
...
...
src/main/java/com/subsidy/common/interceptor/AuthenticationInterceptor.java
View file @
73d94e0
...
...
@@ -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
)
{
...
...
src/main/java/com/subsidy/controller/MemberController.java
View file @
73d94e0
...
...
@@ -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
));
...
...
src/main/resources/mapper/CourseDictMapper.xml
View file @
73d94e0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment