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
79c8890b
Commit
79c8890b
authored
Sep 01, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix:知识广场查询,重新统计"
parent
ff4ec9c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
HomeParamDTO.java
...in/java/org/rcisoft/business/blabel/dto/HomeParamDTO.java
+2
-5
BLabelServiceImpl.java
...isoft/business/blabel/service/impl/BLabelServiceImpl.java
+2
-16
No files found.
src/main/java/org/rcisoft/business/blabel/dto/HomeParamDTO.java
View file @
79c8890b
...
...
@@ -21,9 +21,6 @@ public class HomeParamDTO {
@ApiModelProperty
(
value
=
"标签集合"
)
private
List
<
BLabel
>
labels
;
@ApiModelProperty
(
value
=
"分类计数"
)
private
int
classifyCount
;
@ApiModelProperty
(
value
=
"标签计数"
)
private
int
LableCount
;
@ApiModelProperty
(
value
=
"allNewCount"
)
private
int
allNewCount
;
}
src/main/java/org/rcisoft/business/blabel/service/impl/BLabelServiceImpl.java
View file @
79c8890b
...
...
@@ -83,8 +83,6 @@ public class BLabelServiceImpl implements BLabelService {
@Override
public
HomeParamDTO
queryBlabelAndCourse
(
SearchParamDTO
searchParamDTO
,
CurUser
curUser
)
{
int
classifyCount
=
0
;
int
lableCount
=
0
;
//新建返回对象
HomeParamDTO
paramDTO
=
new
HomeParamDTO
();
//根据条件查询出对应的课程
...
...
@@ -95,17 +93,11 @@ public class BLabelServiceImpl implements BLabelService {
if
(
"1"
.
equals
(
b
.
getIsNew
()))
newLessons
.
add
(
b
);
}
paramDTO
.
setAllNewCount
(
newLessons
.
size
());
LogUtil
.
addnNewLog
(
"-----------addNewLable----------当前查询课程总个数--"
+
lessons
.
size
()+
"--------------------"
);
//遍历分类数据
List
<
QueryCourseResDTO
>
dtoList
=
bCourseRepository
.
queryFirstLevel
(
curUser
.
getCorpId
(),
20
);
List
<
QueryCourseResDTO
>
courseResDTOS
=
addNewFolder
(
dtoList
,
newLessons
);
for
(
QueryCourseResDTO
dto
:
courseResDTOS
){
if
(
StringUtils
.
isNotEmpty
(
String
.
valueOf
(
dto
.
getNewCount
()))
&&
dto
.
getNewCount
()
>
0
){
classifyCount
+=
dto
.
getNewCount
();
}
}
paramDTO
.
setClassifyCount
(
classifyCount
);
paramDTO
.
setCourses
(
courseResDTOS
);
paramDTO
.
setCourses
(
addNewFolder
(
dtoList
,
newLessons
));
//遍历标签数据
List
<
BLabel
>
labels
=
bLabelRepository
.
queryBlabels
(
searchParamDTO
.
getLName
(),
curUser
.
getCorpId
());
List
<
BLabel
>
labelsForPlatform
=
bLabelRepository
.
queryBLabelsForPlatform
(
searchParamDTO
.
getLName
(),
curUser
.
getCorpId
());
...
...
@@ -129,12 +121,6 @@ public class BLabelServiceImpl implements BLabelService {
if
(
curUser
.
getCorpId
().
equals
(
lable
.
getCorpId
())
||
(!
curUser
.
getCorpId
().
equals
(
lable
.
getCorpId
())
&&
0
<
lable
.
getNewCount
()))
newLables
.
add
(
lable
);
});
for
(
BLabel
label
:
newLables
){
if
(
StringUtils
.
isNotEmpty
(
String
.
valueOf
(
label
.
getNewCount
()))
&&
label
.
getNewCount
()
>
0
){
lableCount
+=
label
.
getNewCount
();
}
}
paramDTO
.
setLableCount
(
lableCount
);
paramDTO
.
setLabels
(
newLables
);
return
paramDTO
;
}
...
...
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