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
6282adb4
Commit
6282adb4
authored
Sep 29, 2019
by
root
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'meiteng' of
ssh://103.249.252.28:10022/lcy/education
into meiteng
parents
f04e9bbf
3b1fff7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
BLessonRepository.java
...a/org/rcisoft/business/blesson/dao/BLessonRepository.java
+10
-3
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+3
-1
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonRepository.java
View file @
6282adb4
...
@@ -444,14 +444,20 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
...
@@ -444,14 +444,20 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"IFNULL(CONCAT(b3.c_name,\".\"),\"\"), "
+
"IFNULL(CONCAT(b3.c_name,\".\"),\"\"), "
+
"IFNULL(CONCAT(b2.c_name,\".\"),\"\"), "
+
"IFNULL(CONCAT(b2.c_name,\".\"),\"\"), "
+
" IFNULL(b1.c_name,\"\") "
+
" IFNULL(b1.c_name,\"\") "
+
") AS courseName "
+
") AS courseName ,"
+
"u1.name AS createByName "
+
"FROM "
+
"FROM "
+
"b_lesson les "
+
"b_lesson les "
+
"LEFT JOIN b_course b1 ON b1.business_id = les.course_id "
+
"LEFT JOIN b_course b1 ON b1.business_id = les.course_id "
+
"AND b1.corp_id = #{corpId} "
+
"LEFT JOIN b_course b2 ON b2.business_id = b1.pid "
+
"LEFT JOIN b_course b2 ON b2.business_id = b1.pid "
+
"AND b2.corp_id = #{corpId} "
+
"LEFT JOIN b_course b3 ON b3.business_id = b2.pid "
+
"LEFT JOIN b_course b3 ON b3.business_id = b2.pid "
+
"AND b3.corp_id = #{corpId} "
+
"LEFT JOIN s_user u1 ON u1.business_id = les.lecturer_id "
+
"LEFT JOIN s_user u1 ON u1.business_id = les.lecturer_id "
+
"WHERE 1 = 1 "
+
"AND u1.corp_id = #{corpId}"
+
"WHERE 1=1 "
+
"AND les.corp_id = #{corpId}"
+
"<if test='!isAdmin'>"
+
"<if test='!isAdmin'>"
+
"AND les.lecturer_id IN"
+
"AND les.lecturer_id IN"
+
"<foreach item='item' index='index' collection='CurUserSet' open='(' close=')' separator=','> "
+
"<foreach item='item' index='index' collection='CurUserSet' open='(' close=')' separator=','> "
+
...
@@ -463,7 +469,8 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
...
@@ -463,7 +469,8 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"<if test=\"bLesson.releaseState!=null and bLesson.releaseState!=''\">AND les.release_state = #{bLesson.releaseState} </if>"
+
"<if test=\"bLesson.releaseState!=null and bLesson.releaseState!=''\">AND les.release_state = #{bLesson.releaseState} </if>"
+
" order by les.release_date desc </script>"
)
" order by les.release_date desc </script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
@ResultMap
(
value
=
"BaseResultMap"
)
List
<
BLesson
>
selectAllManageLesson
(
@Param
(
"CurUserSet"
)
Set
<
CurUser
>
CurUserSet
,
@Param
(
"bLesson"
)
BLesson
bLesson
,
@Param
(
"isAdmin"
)
boolean
isAdmin
);
List
<
BLesson
>
selectAllManageLesson
(
@Param
(
"C"
+
"urUserSet"
)
Set
<
CurUser
>
CurUserSet
,
@Param
(
"bLesson"
)
BLesson
bLesson
,
@Param
(
"isAdmin"
)
boolean
isAdmin
,
@Param
(
"corpId"
)
String
corpId
)
;
}
}
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
6282adb4
...
@@ -313,6 +313,8 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -313,6 +313,8 @@ public class BLessonServiceImpl implements BLessonService {
@Override
@Override
public
List
<
BLesson
>
theLessonMangageByPagination
(
PageUtil
pageUtil
,
CurUser
curUser
,
BLesson
bLesson
)
{
public
List
<
BLesson
>
theLessonMangageByPagination
(
PageUtil
pageUtil
,
CurUser
curUser
,
BLesson
bLesson
)
{
//查询当前登录人所在的企业
String
corpId
=
curUser
.
getCorpId
();
String
userId
=
curUser
.
getUserId
();
String
userId
=
curUser
.
getUserId
();
//查询当前登录人有什么角色
//查询当前登录人有什么角色
List
<
String
>
roleList
=
sysUserMapper
.
queryRoleTypeByUserId
(
userId
);
List
<
String
>
roleList
=
sysUserMapper
.
queryRoleTypeByUserId
(
userId
);
...
@@ -330,7 +332,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -330,7 +332,7 @@ public class BLessonServiceImpl implements BLessonService {
//自己
//自己
uids
.
add
(
curUser
);
uids
.
add
(
curUser
);
//查讯课程的语句
//查讯课程的语句
List
<
BLesson
>
bLessons
=
bLessonRepository
.
selectAllManageLesson
(
uids
,
bLesson
,
isAdmin
);
List
<
BLesson
>
bLessons
=
bLessonRepository
.
selectAllManageLesson
(
uids
,
bLesson
,
isAdmin
,
corpId
);
return
bLessons
;
return
bLessons
;
}
}
}
}
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