Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
af525ee3
Commit
af525ee3
authored
Jul 06, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 我的课程 新增平台推送的课程
parent
8aceea52
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
BLessonController.java
...cisoft/business/blesson/controller/BLessonController.java
+1
-1
BLessonPersonRepository.java
...rcisoft/business/blesson/dao/BLessonPersonRepository.java
+2
-2
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+8
-4
No files found.
src/main/java/org/rcisoft/business/blesson/controller/BLessonController.java
View file @
af525ee3
...
...
@@ -812,7 +812,7 @@ public class BLessonController extends PaginationController<BLesson> {
* @param
* @return
*/
@ApiOperation
(
value
=
"647 返回首页模块角标数量"
,
notes
=
"返回首页模块角标数量"
,
response
=
BLesson
.
class
)
@ApiOperation
(
value
=
"647 返回首页模块角标数量"
,
notes
=
"返回首页模块角标数量"
,
response
=
NewCountDTO
.
class
)
@GetMapping
(
value
=
"/queryNewCount"
)
public
Result
queryNewCount
(
CurUser
curUser
,
BindingResult
bindingResult
)
{
return
Result
.
builder
(
new
PersistModel
(
1
),
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonPersonRepository.java
View file @
af525ee3
...
...
@@ -23,13 +23,13 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" left join b_lesson bl on blp.lesson_id = bl.business_id "
+
" left join s_user su on su.business_id = bl.lecturer_id "
+
" left join b_course bc on bc.business_id = bl.course_id "
+
" left join b_lesson_corp blc on bl.business_id = blc.lesson_id and bl.corp_id = '###' "
+
" where blp.del_flag != 1 and blp.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
// " and bl.release_state = '2' " +
" and blp.person_id = #{param.userId} "
+
" and
bl.corp_id = #{param.corpId}
"
+
" and
(bl.corp_id = #{param.corpId} or blc.corp_id = #{param.corpId} )
"
+
" <if test= \" param.isFinish != null and param.isFinish != ''\">and blp.is_finish = #{param.isFinish} </if> "
+
" <if test= \" param.lessonType !=null and param.lessonType != ''\">and bl.lesson_type = #{param.lessonType} </if> "
+
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
af525ee3
...
...
@@ -540,34 +540,38 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"(select COUNT(1) from b_lesson_person blp "
+
" LEFT join b_lesson bl on blp.lesson_id = bl.business_id "
+
" LEFT join b_lesson_corp blc on blc.lesson_id = bl.business_id and bl.corp_id = '###'"
+
" where blp.del_flag != 1 and blp.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.lesson_type = 0 "
+
" and
bl.corp_id = #{curUser.corpId}
"
+
" and
(bl.corp_id = #{curUser.corpId} or blc.corp_id = #{curUser.corpId})
"
+
" and blp.person_id = #{curUser.userId} and blp.is_finish is not null ) learnAllCount, "
+
"(select COUNT(1) from b_lesson_person blp "
+
" LEFT join b_lesson bl on blp.lesson_id = bl.business_id "
+
" LEFT join b_lesson_corp blc on blc.lesson_id = bl.business_id and bl.corp_id = '###'"
+
" where blp.del_flag != 1 and blp.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.lesson_type = 0 "
+
" and
bl.corp_id = #{curUser.corpId}
"
+
" and
(bl.corp_id = #{curUser.corpId} or blc.corp_id = #{curUser.corpId})
"
+
" and blp.person_id = #{curUser.userId} and blp.is_finish = '2') finishCount, "
+
"(select COUNT(1) from b_lesson_person blp "
+
" LEFT join b_lesson bl on blp.lesson_id = bl.business_id "
+
" LEFT join b_lesson_corp blc on blc.lesson_id = bl.business_id and bl.corp_id = '###'"
+
" where blp.del_flag != 1 and blp.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.lesson_type = 0 "
+
" and
bl.corp_id = #{curUser.corpId}
"
+
" and
(bl.corp_id = #{curUser.corpId} or blc.corp_id = #{curUser.corpId})
"
+
" and blp.person_id = #{curUser.userId} and blp.is_finish = '1') notFinishCount, "
+
"(select COUNT(1) from b_lesson_person blp "
+
" LEFT join b_lesson bl on blp.lesson_id = bl.business_id "
+
" LEFT join b_lesson_corp blc on blc.lesson_id = bl.business_id and bl.corp_id = '###'"
+
" where blp.del_flag != 1 and blp.flag = 1 "
+
" and bl.del_flag != 1 and bl.flag = 1 "
+
" and bl.lesson_type = 0 "
+
" and
bl.corp_id = #{curUser.corpId}
"
+
" and
(bl.corp_id = #{curUser.corpId} or blc.corp_id = #{curUser.corpId})
"
+
" and blp.person_id = #{curUser.userId} and blp.is_finish = '0') notStartCount "
+
"</script>"
})
ILessonCountDTO
iLessonCount
(
@Param
(
"curUser"
)
CurUser
curUser
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment