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
4931e5aa
Commit
4931e5aa
authored
Sep 30, 2019
by
王淑君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询课程分类增加pid,level
parent
ccc83c92
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
BCourseRepository.java
...a/org/rcisoft/business/bcourse/dao/BCourseRepository.java
+1
-1
QueryCourseResDTO.java
...a/org/rcisoft/business/bcourse/dto/QueryCourseResDTO.java
+9
-0
BDictionaryServiceImpl.java
...ness/bdictionary/service/impl/BDictionaryServiceImpl.java
+3
-3
BCourseMapper.xml
...esources/mapper/business/bcourse.mapper/BCourseMapper.xml
+3
-0
No files found.
src/main/java/org/rcisoft/business/bcourse/dao/BCourseRepository.java
View file @
4931e5aa
...
...
@@ -88,4 +88,4 @@ public interface BCourseRepository extends BaseMapper<BCourse> {
"</foreach>"
+
"</script>"
)
int
sortCourser
(
@Param
(
"map"
)
List
<
BCourse
>
map
);
}
}
\ No newline at end of file
src/main/java/org/rcisoft/business/bcourse/dto/QueryCourseResDTO.java
View file @
4931e5aa
...
...
@@ -20,4 +20,13 @@ public class QueryCourseResDTO {
@ApiModelProperty
(
value
=
"子章节"
)
private
List
<
BCourse
>
children
;
@ApiModelProperty
(
value
=
"序号"
)
private
int
sort
;
@ApiModelProperty
(
value
=
"序号"
)
private
String
pid
;
@ApiModelProperty
(
value
=
"等级"
)
private
String
courseLevel
;
}
src/main/java/org/rcisoft/business/bdictionary/service/impl/BDictionaryServiceImpl.java
View file @
4931e5aa
...
...
@@ -96,9 +96,9 @@ public class BDictionaryServiceImpl implements BDictionaryService {
*/
public
List
<
BDictionary
>
findAllColumnConfig
(
CurUser
curUser
){
List
<
String
>
configList
=
new
ArrayList
<>();
configList
.
add
(
"
3e3feb5a66244652a1c052b369a7b68a
"
);
//关注人数
configList
.
add
(
"
3e3feb5a66244652a1c052b369a7b68b
"
);
//总裁读书会
configList
.
add
(
"
3e3feb5a66244652a1c052b369a7b68c
"
);
//在学人数
configList
.
add
(
"
0
"
);
//关注人数
configList
.
add
(
"
2
"
);
//总裁读书会
configList
.
add
(
"
1
"
);
//在学人数
List
<
BDictionary
>
DictList
=
bDictionaryRepository
.
findAllColumnConfig
(
curUser
,
configList
);
return
DictList
;
}
...
...
src/main/resources/mapper/business/bcourse.mapper/BCourseMapper.xml
View file @
4931e5aa
...
...
@@ -19,6 +19,9 @@
<resultMap
id=
"BaseResultMapDTO"
type=
"org.rcisoft.business.bcourse.dto.QueryCourseResDTO"
>
<id
column=
"business_id"
jdbcType=
"VARCHAR"
property=
"key"
/>
<result
column=
"c_name"
jdbcType=
"VARCHAR"
property=
"title"
/>
<result
column=
"sort"
jdbcType=
"VARCHAR"
property=
"sort"
/>
<result
column=
"pid"
jdbcType=
"VARCHAR"
property=
"pid"
/>
<result
column=
"course_level"
jdbcType=
"VARCHAR"
property=
"courseLevel"
/>
</resultMap>
<resultMap
id=
"ChildListResultMap"
type=
"org.rcisoft.business.bcourse.dto.QueryCourseResDTO"
extends=
"BaseResultMapDTO"
>
...
...
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