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
85c23e43
Commit
85c23e43
authored
Jan 03, 2018
by
YangZhaoJun1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决BUG
parent
9e0cfa5d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
29 additions
and
15 deletions
+29
-15
BChapterController.java
...soft/business/bchapter/controller/BChapterController.java
+5
-1
BChapterRepository.java
...org/rcisoft/business/bchapter/dao/BChapterRepository.java
+6
-2
BSlController.java
...va/org/rcisoft/business/bsl/controller/BSlController.java
+2
-2
BSlRepository.java
...main/java/org/rcisoft/business/bsl/dao/BSlRepository.java
+5
-4
SlDTO.java
src/main/java/org/rcisoft/business/bsl/dto/SlDTO.java
+2
-2
SlDetailDTO.java
src/main/java/org/rcisoft/business/bsl/dto/SlDetailDTO.java
+1
-0
BSlService.java
...ain/java/org/rcisoft/business/bsl/service/BSlService.java
+2
-2
BSlServiceImpl.java
...org/rcisoft/business/bsl/service/impl/BSlServiceImpl.java
+2
-2
application-dev.yml
src/main/resources/application-dev.yml
+4
-0
No files found.
src/main/java/org/rcisoft/business/bchapter/controller/BChapterController.java
View file @
85c23e43
...
...
@@ -63,7 +63,7 @@ public class BChapterController extends PaginationController<BChapter> {
@ApiImplicitParam
(
name
=
"chapterName"
,
value
=
"章节名称"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"pid"
,
value
=
"上一级"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"classHour"
,
value
=
"课时"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"isTest"
,
value
=
"1:实验 2:视频 3:PPT
'
"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"isTest"
,
value
=
"1:实验 2:视频 3:PPT
4:pdf 5:资料
"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"lessonOrSl"
,
value
=
"课程或开课;0:开课 1:课程"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"lessonId"
,
value
=
"课程ID(课程ID和开课ID只能存在一个)"
,
required
=
false
,
dataType
=
"varchar"
)})
@PreAuthorize
(
"hasAnyRole('ROLE_1001','ROLE_1002')"
)
...
...
@@ -433,6 +433,8 @@ public class BChapterController extends PaginationController<BChapter> {
@ApiOperation
(
value
=
"章节向上调顺序"
,
notes
=
"章节向上调顺序"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"pid"
,
value
=
"父节点ID"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"slId"
,
value
=
"开课ID"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"lessonId"
,
value
=
"课程ID"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"sort"
,
value
=
"当前顺序"
,
required
=
true
,
dataType
=
"Integer"
)})
@PostMapping
(
value
=
"/updateTopChapter"
)
public
Result
updateTopChapter
(
BChapter
bChapter
){
...
...
@@ -446,6 +448,8 @@ public class BChapterController extends PaginationController<BChapter> {
@ApiOperation
(
value
=
"章节向下调顺序"
,
notes
=
"章节向下调顺序"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"pid"
,
value
=
"父节点ID"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"slId"
,
value
=
"开课ID"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"lessonId"
,
value
=
"课程ID"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"sort"
,
value
=
"当前顺序"
,
required
=
true
,
dataType
=
"Integer"
)})
@PostMapping
(
value
=
"/updateDownChapter"
)
public
Result
updateDownChapter
(
BChapter
bChapter
){
...
...
src/main/java/org/rcisoft/business/bchapter/dao/BChapterRepository.java
View file @
85c23e43
...
...
@@ -203,7 +203,9 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
@Param
(
"lessonId"
)
String
lessonId
);
@Select
(
"<script>select * from b_chapter where sort < #{sort} "
+
"AND pid = #{pid} AND sl_id = #{slId} "
+
"AND pid = #{pid} "
+
"<if test=\"slId !=null and slId !=''\">AND sl_id = #{slId} </if> "
+
"<if test=\"lessonId !=null and lessonId !=''\">AND lesson_id = #{lessonId} </if> "
+
"ORDER BY sort desc LIMIT 1</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
BChapter
getlessChapter
(
BChapter
bChapter
);
...
...
@@ -213,7 +215,9 @@ public interface BChapterRepository extends BaseMapper<BChapter> {
int
updateSortById
(
@Param
(
"businessId"
)
String
businessId
,
@Param
(
"sort"
)
int
sort
);
@Select
(
"<script>select * from b_chapter where sort > #{sort} "
+
"AND pid = #{pid} AND sl_id = #{slId} "
+
"AND pid = #{pid} "
+
"<if test=\"slId !=null and slId !=''\">AND sl_id = #{slId} </if> "
+
"<if test=\"lessonId !=null and lessonId !=''\">AND lesson_id = #{lessonId} </if> "
+
"ORDER BY sort asc LIMIT 1</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
BChapter
getBigChapter
(
BChapter
bChapter
);
...
...
src/main/java/org/rcisoft/business/bsl/controller/BSlController.java
View file @
85c23e43
...
...
@@ -112,7 +112,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiImplicitParam
(
name
=
"lessonName"
,
value
=
"课程名称"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"termName"
,
value
=
"学期名称"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"termCode"
,
value
=
"学期编号"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"auditStatus"
,
value
=
"审核状态 0:待发布,1审核中,2已发布,3已驳回"
,
required
=
false
,
dataType
=
"varchar"
)})
@ApiImplicitParam
(
name
=
"auditStatus"
,
value
=
"审核状态 0:待发布,1审核中,2已发布,3已驳回
,4已下线
"
,
required
=
false
,
dataType
=
"varchar"
)})
@GetMapping
(
value
=
"/queryBSlsByPagination"
)
public
GridModel
queryBSlsByPagination
(
BSl
param
)
{
param
.
setCreateBy
(
UserUtil
.
getUserInfoProp
(
getToken
(),
UserUtil
.
USER_ID
));
...
...
@@ -299,7 +299,7 @@ public class BSlController extends PaginationController<BSl> {
@ApiOperation
(
value
=
"开课审核"
,
notes
=
"开课审核"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"slId"
,
value
=
"开课ID"
,
required
=
true
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"要变成的状态0:待发布,1审核中,2已发布,3已驳回,结课"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"status"
,
value
=
"要变成的状态0:待发布,1审核中,2已发布,3已驳回,
4
结课"
,
required
=
false
,
dataType
=
"varchar"
),
@ApiImplicitParam
(
name
=
"opinion"
,
value
=
"驳回意见(通过不用写意见)"
,
required
=
false
,
dataType
=
"varchar"
)})
@PostMapping
(
"/auditBsl"
)
public
Result
auditBsl
(
String
slId
,
String
status
,
String
opinion
){
...
...
src/main/java/org/rcisoft/business/bsl/dao/BSlRepository.java
View file @
85c23e43
...
...
@@ -94,7 +94,7 @@ public interface BSlRepository extends BaseMapper<BSl> {
"AND t2.flag = 1\n"
+
"AND t3.del_flag = 0\n"
+
"AND t3.flag = 1\n"
+
"AND t2.
is_online = '1
' "
+
"AND t2.
audit_status != '4
' "
+
"<if test=\"lessonName !=null and lessonName !=''\">AND t3.lesson_name like CONCAT('%',#{lessonName},'%') </if>"
+
"<if test=\"termCode !=null and termCode !=''\">AND t2.term_code like CONCAT('%',#{termCode},'%') </if></script>"
)
List
<
SlDTO
>
selectStudentSLByCode
(
@Param
(
"studentCode"
)
String
studentCode
,
...
...
@@ -109,7 +109,7 @@ public interface BSlRepository extends BaseMapper<BSl> {
*/
@Select
(
"<script>SELECT\n"
+
"\tt2.`code` as code,\n"
+
"
\tt2.`is_online` as isOnline,\n
"
+
"
t2.audit_status AS auditStatus,
"
+
"\tt2.sl_cover_url as slCoverUrl,\n"
+
"\tt2.business_id as businessId,\n"
+
"\tt3.lesson_name as lessonName\n"
+
...
...
@@ -122,7 +122,7 @@ public interface BSlRepository extends BaseMapper<BSl> {
"AND t2.flag = 1\n"
+
"AND t3.del_flag = 0\n"
+
"AND t3.flag = 1\n"
+
"AND t2.
is_online != 2
"
+
"AND t2.
audit_status != '4'
"
+
"<if test=\"lessonName !=null and lessonName !=''\">AND t3.lesson_name like CONCAT('%',#{lessonName},'%') </if>"
+
"<if test=\"auditStatus !=null and auditStatus !=''\">AND t2.audit_status = #{auditStatus} </if>"
+
" <if test=\"termCode !=null and termCode !=''\">AND t2.term_code like CONCAT('%',#{termCode},'%') </if></script>"
)
...
...
@@ -144,7 +144,8 @@ public interface BSlRepository extends BaseMapper<BSl> {
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','1','%' )) AS experiment,\n"
+
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','2','%' )) AS video,\n"
+
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','3','%' )) AS ppt,\n"
+
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','4','%' )) AS pdf\n"
+
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','4','%' )) AS pdf,\n"
+
"(select count(*) from b_chapter bc where bc.sl_id=t1.business_id and bc.is_test like CONCAT('%','5','%' )) AS file\n"
+
"FROM\n"
+
"b_sl t1\n"
+
"LEFT JOIN b_lesson_direction t7 ON t1.business_id = t7.sl_id\n"
+
...
...
src/main/java/org/rcisoft/business/bsl/dto/SlDTO.java
View file @
85c23e43
...
...
@@ -17,6 +17,6 @@ public class SlDTO {
private
String
businessId
;
/** 已学习0否,1是*/
private
String
isStudy
;
/**
是否上线1是2否
*/
private
String
isOnline
;
/**
状态
*/
private
String
auditStatus
;
}
src/main/java/org/rcisoft/business/bsl/dto/SlDetailDTO.java
View file @
85c23e43
...
...
@@ -22,6 +22,7 @@ public class SlDetailDTO {
private
String
video
;
private
String
ppt
;
private
String
pdf
;
private
String
file
;
private
String
credits
;
private
String
classHour
;
private
String
directionName
;
...
...
src/main/java/org/rcisoft/business/bsl/service/BSlService.java
View file @
85c23e43
...
...
@@ -79,10 +79,10 @@ public interface BSlService{
/**
* 根据教师工号查找在教课程
* @param
c
ode
* @param
teacherC
ode
* @return
*/
List
<
SlDTO
>
queryTeacherSLByCodeByPagination
(
PageUtil
pageUtil
,
String
c
ode
,
String
lessonName
,
String
auditStatus
,
String
termCode
);
List
<
SlDTO
>
queryTeacherSLByCodeByPagination
(
PageUtil
pageUtil
,
String
teacherC
ode
,
String
lessonName
,
String
auditStatus
,
String
termCode
);
/**
* 获取精品课程
...
...
src/main/java/org/rcisoft/business/bsl/service/impl/BSlServiceImpl.java
View file @
85c23e43
...
...
@@ -293,8 +293,8 @@ public class BSlServiceImpl implements BSlService {
}
@Override
public
List
<
SlDTO
>
queryTeacherSLByCodeByPagination
(
PageUtil
pageUtil
,
String
c
ode
,
String
lessonName
,
String
auditStatus
,
String
termCode
)
{
return
bSlRepository
.
selectTeacherSLByCode
(
c
ode
,
lessonName
,
auditStatus
,
termCode
);
public
List
<
SlDTO
>
queryTeacherSLByCodeByPagination
(
PageUtil
pageUtil
,
String
teacherC
ode
,
String
lessonName
,
String
auditStatus
,
String
termCode
)
{
return
bSlRepository
.
selectTeacherSLByCode
(
teacherC
ode
,
lessonName
,
auditStatus
,
termCode
);
}
@Override
...
...
src/main/resources/application-dev.yml
View file @
85c23e43
...
...
@@ -128,4 +128,8 @@ global:
admin
:
ROLE_1001
teacher
:
ROLE_1002
student
:
ROLE_1003
java_simple
:
0001
java_project
:
0002
html_simple
:
1001
html_project
:
1002
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