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
4ffaf6c3
Commit
4ffaf6c3
authored
Jul 15, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: lable
parent
ec523321
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+11
-6
BLessonMapper.xml
...esources/mapper/business/blesson/mapper/BLessonMapper.xml
+4
-4
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
4ffaf6c3
...
...
@@ -273,7 +273,7 @@ public class BLessonServiceImpl implements BLessonService {
}
List
<
BLesson
>
result
=
bLessonRepository
.
queryPersonMore
(
curUser
,
departs
);
log
.
info
(
"-----------addNew---------大家都在学查询课程或培训的总个数----------"
+
result
.
size
()+
"--------------------"
);
return
addNew
(
result
);
return
addNew
(
addPushLable
(
result
,
curUser
)
);
}
@Override
...
...
@@ -320,7 +320,7 @@ public class BLessonServiceImpl implements BLessonService {
}
List
<
BLesson
>
result
=
bLessonRepository
.
queryRecommend
(
curUser
,
departs
);
log
.
info
(
"-----------addNew---------企业推荐查询课程或培训的总个数----------"
+
result
.
size
()+
"--------------------"
);
return
addNew
(
result
);
return
addNew
(
addPushLable
(
result
,
curUser
)
);
}
@Override
...
...
@@ -342,7 +342,7 @@ public class BLessonServiceImpl implements BLessonService {
List
<
BLesson
>
result
=
bLessonRepository
.
queryConcern
(
curUser
,
departs
);
log
.
info
(
"-----------addNew---------最受关注查询课程或培训的总个数----------"
+
result
.
size
()+
"--------------------"
);
return
addNew
(
result
);
return
addNew
(
addPushLable
(
result
,
curUser
)
);
}
@Override
...
...
@@ -364,7 +364,7 @@ public class BLessonServiceImpl implements BLessonService {
List
<
BLesson
>
result
=
bLessonRepository
.
queryInterested
(
curUser
,
departs
);
log
.
info
(
"-----------addNew---------可能感兴趣查询课程或培训的总个数----------"
+
result
.
size
()+
"--------------------"
);
return
addNew
(
result
);
return
addNew
(
addPushLable
(
result
,
curUser
)
);
}
...
...
@@ -1220,7 +1220,7 @@ public class BLessonServiceImpl implements BLessonService {
throw
new
ServiceException
(
ResultServiceEnums
.
INVALID_PARAMETER_VALUE
);
}
return
addNew
(
ListAllLesson
);
return
addNew
(
addPushLable
(
ListAllLesson
,
curUser
)
);
}
@Override
...
...
@@ -2106,7 +2106,12 @@ public class BLessonServiceImpl implements BLessonService {
List
<
String
>
list
=
new
ArrayList
<>();
String
pushLable
=
bLessonRepository
.
getPushLable
(
lesson
.
getBusinessId
());
// 获取 推荐课程的 企业自定义 标签
List
<
QueryLabelResDTO
>
lableList
=
bLessonRepository
.
queryLabelByLessonId2
(
lesson
.
getBusinessId
(),
curUser
.
getCorpId
());
List
<
QueryLabelResDTO
>
lableList
=
new
ArrayList
<>();
if
(!
"###"
.
equals
(
lesson
.
getCorpId
())){
lableList
=
bLessonRepository
.
queryLabelByLessonId
(
lesson
.
getBusinessId
());
}
else
{
lableList
=
bLessonRepository
.
queryLabelByLessonId2
(
lesson
.
getBusinessId
(),
curUser
.
getCorpId
());
}
if
(
StringUtils
.
isNotEmpty
(
pushLable
))
list
.
addAll
(
asList
(
pushLable
.
split
(
","
)));
if
(
list
!=
null
&&
list
.
size
()
>
0
){
...
...
src/main/resources/mapper/business/blesson/mapper/BLessonMapper.xml
View file @
4ffaf6c3
...
...
@@ -47,10 +47,10 @@
<result
column=
"corp_id"
jdbcType=
"VARCHAR"
property=
"corpId"
/>
<!---->
<collection
property=
"labelList"
ofType=
"org.rcisoft.business.blabel.dto.QueryLabelResDTO"
javaType=
"java.util.ArrayList"
select=
"org.rcisoft.business.blesson.dao.BLessonRepository.queryLabelByLessonId"
column=
"business_id"
>
</collection
>
<!-- <collection property="labelList" ofType="org.rcisoft.business.blabel.dto.QueryLabelResDTO"-->
<!-- javaType="java.util.ArrayList" select="org.rcisoft.business.blesson.dao.BLessonRepository.queryLabelByLessonId"-->
<!-- column="business_id">--
>
<!-- </collection>--
>
</resultMap>
...
...
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