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
d5decf9d
Commit
d5decf9d
authored
Oct 16, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/meiteng' into meiteng
parents
1a3de8f3
20106f99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+8
-8
BRecommendRepository.java
...rg/rcisoft/business/blesson/dao/BRecommendRepository.java
+2
-1
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+0
-1
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
d5decf9d
...
...
@@ -163,7 +163,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" and bl.person_number > (select `value` from b_dictionary where type = 'ZXRS') "
+
//ZXRS 在学人数
" order by bl.person_number,bl.release_date desc "
+
"</script>"
)
...
...
@@ -251,7 +251,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" and bl.person_number > (select `value` from b_dictionary where type = 'GZRS') "
+
//ZXRS 关注人数
" order by bl.collect_number,bl.release_date desc "
+
"</script>"
)
...
...
@@ -316,7 +316,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" order by T.bsum , b.collect_number desc"
+
"</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
...
...
@@ -370,7 +370,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='param.departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" <if test= \" param.viewParam !=null and param.viewParam != ''\">and (bl.lesson_name like CONCAT('%',#{param.viewParam},'%') "
+
" or su.name like CONCAT('%',#{param.viewParam},'%'))</if> "
+
" <if test= \" courseIds !=null and courseIds.size() > 0 \">and course_id in "
+
...
...
@@ -562,7 +562,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='model.departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" <if test= \" model.viewParam !=null and model.viewParam != ''\">and (bl.lesson_name like CONCAT('%',#{model.viewParam},'%') "
+
" or su.name like CONCAT('%',#{model.viewParam},'%'))</if> "
+
" <if test= \" model.courseIds !=null and model.courseIds.size() > 0 \">and course_id in "
+
...
...
@@ -666,7 +666,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='model.departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" and bl.person_number > (select `value` from b_dictionary where type = 'ZXRS') "
+
//ZXRS 在学人数
" <if test= \" model.viewParam !=null and model.viewParam != ''\">and (bl.lesson_name like CONCAT('%',#{model.viewParam},'%') "
+
" or su.name like CONCAT('%',#{model.viewParam},'%'))</if> "
+
...
...
@@ -720,7 +720,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='model.departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" and bl.person_number > (select `value` from b_dictionary where type = 'GZRS') "
+
//ZXRS 关注人数
" <if test= \" model.viewParam !=null and model.viewParam != ''\">and (bl.lesson_name like CONCAT('%',#{model.viewParam},'%') "
+
" or su.name like CONCAT('%',#{model.viewParam},'%'))</if> "
+
...
...
@@ -793,7 +793,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" or (bvs.type = 1 and bvs.target_id in "
+
" <foreach item='item' index='index' collection='model.departs' open='(' separator=',' close=')'> #{item} </foreach>)"
+
" </if> "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1 ))) "
+
" or (bl.business_id not in (select lesson_id from b_viewrange where del_flag != 1 and flag = 1
AND lesson_id IS NOT NULL
))) "
+
" <if test= \" model.viewParam !=null and model.viewParam != ''\">and (bl.lesson_name like CONCAT('%',#{model.viewParam},'%') "
+
" or su.name like CONCAT('%',#{model.viewParam},'%'))</if> "
+
" <if test= \" model.courseIds !=null and model.courseIds.size() > 0 \">and course_id in "
+
...
...
src/main/java/org/rcisoft/business/blesson/dao/BRecommendRepository.java
View file @
d5decf9d
...
...
@@ -74,7 +74,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> {
" and su.corp_id = #{corpId} "
+
" <if test=\"viewParam!=null and viewParam != ''\">and su.name like CONCAT('%',#{viewParam},'%')</if>"
+
" and brs.type = '0' "
+
" and br.lesson_id = #{lessonId}</script>"
)
List
<
FindLessonRecommendRspDTO
>
queryRecommendPersonByLessonId
(
FindLessonRecommendDTO
param
);
...
...
@@ -87,6 +87,7 @@ public interface BRecommendRepository extends BaseMapper<BRecommend> {
// " and bl.corp_id = #{corpId} "+
" and brs.type = '1' "
+
" <if test=\"departs != null and departs.size() > 0 \"> "
+
" and brs.target_id in "
+
" <foreach item='item' index='index' collection='departs' open='(' separator=',' close=')'> #{item.departId} </foreach> "
+
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
d5decf9d
...
...
@@ -431,7 +431,6 @@ public class BLessonServiceImpl implements BLessonService {
bLessonPersonRepository
.
updateList
(
updateBLessonPerson
,
inLessonIds
);
//从学生Id中删除已更新的学生id
userIds
.
removeAll
(
inLessonIds
);
}
//剩余学生添加至b_lesson_person表
List
<
BLessonPerson
>
bLessonPersonOthers
=
new
ArrayList
<>();
...
...
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