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
7a1d242e
Commit
7a1d242e
authored
Jun 23, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 平台推荐课程标签添加字段区分
parent
8b6fa377
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
QueryLabelResDTO.java
...ava/org/rcisoft/business/blabel/dto/QueryLabelResDTO.java
+3
-0
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+3
-3
No files found.
src/main/java/org/rcisoft/business/blabel/dto/QueryLabelResDTO.java
View file @
7a1d242e
...
...
@@ -11,4 +11,7 @@ public class QueryLabelResDTO {
@ApiModelProperty
(
value
=
"标签名"
)
private
String
lName
;
@ApiModelProperty
(
value
=
"标签类型(1:平台推荐)"
)
private
String
type
;
}
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
7a1d242e
...
...
@@ -340,7 +340,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
List
<
BLesson
>
queryInterested
(
@Param
(
"curUser"
)
CurUser
curUser
,
@Param
(
"departs"
)
List
<
String
>
departs
);
//查询课程中的标签
@Select
(
" <script> select blb.business_id businessId,blb.l_name lName"
+
@Select
(
" <script> select blb.business_id businessId,blb.l_name lName
,'0' type
"
+
" from b_lesson_label bll "
+
" left join b_label blb on bll.label_id = blb.business_id "
+
" left join b_lesson bls on bls.business_id = bll.lesson_id "
+
...
...
@@ -358,7 +358,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @return
*/
@Select
(
"select * from ( "
+
"select business_id businessId,l_name lName from b_label "
+
"select business_id businessId,l_name lName
,'1' type
from b_label "
+
"where business_id in (SELECT "
+
"SUBSTRING_INDEX(SUBSTRING_INDEX((select push_lable from b_lesson where business_id = #{lessonId}),',',help_topic_id+1),',',-1) AS num "
+
"FROM mysql.help_topic "
+
...
...
@@ -368,7 +368,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"and corp_id = '###' ) a "
+
"UNION "
+
"select * from ( "
+
"SELECT blb.business_id businessId,blb.l_name lName "
+
"SELECT blb.business_id businessId,blb.l_name lName
,'0' type
"
+
"FROM "
+
" b_lesson_label bll "
+
" LEFT JOIN b_label blb ON bll.label_id = blb.business_id "
+
...
...
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