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
c7ef507f
Commit
c7ef507f
authored
Jul 11, 2020
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加 首页全部newCount
parent
119d33bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
NewCountDTO.java
...in/java/org/rcisoft/business/blesson/dto/NewCountDTO.java
+1
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+8
-1
No files found.
src/main/java/org/rcisoft/business/blesson/dto/NewCountDTO.java
View file @
c7ef507f
...
@@ -10,5 +10,6 @@ public class NewCountDTO {
...
@@ -10,5 +10,6 @@ public class NewCountDTO {
public
int
learn
;
public
int
learn
;
public
int
interest
;
public
int
interest
;
public
int
push
;
public
int
push
;
public
int
all
;
}
}
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
c7ef507f
...
@@ -2048,12 +2048,14 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -2048,12 +2048,14 @@ public class BLessonServiceImpl implements BLessonService {
departs
.
removeAll
(
Collections
.
singleton
(
""
));
departs
.
removeAll
(
Collections
.
singleton
(
""
));
}
}
model
.
setDeparts
(
departs
);
model
.
setDeparts
(
departs
);
int
recommendCount
=
0
;
int
recommendCount
=
0
;
int
allCount
=
0
;
int
learnCount
=
0
;
int
learnCount
=
0
;
int
collectCount
=
0
;
int
collectCount
=
0
;
int
interestCount
=
0
;
int
interestCount
=
0
;
int
pushCount
=
0
;
int
pushCount
=
0
;
List
<
BLesson
>
recommend
=
addNew
(
bLessonRepository
.
queryRecommendListByPagination
(
model
));
List
<
BLesson
>
recommend
=
addNew
(
bLessonRepository
.
queryRecommendListByPagination
(
model
));
List
<
BLesson
>
all
=
addNew
(
bLessonRepository
.
queryListAllLessonByPagination
(
model
));
List
<
BLesson
>
learn
=
addNew
(
bLessonRepository
.
queryLearnListByPagination
(
model
));
List
<
BLesson
>
learn
=
addNew
(
bLessonRepository
.
queryLearnListByPagination
(
model
));
List
<
BLesson
>
collect
=
addNew
(
bLessonRepository
.
queryCollectListByPagination
(
model
));
List
<
BLesson
>
collect
=
addNew
(
bLessonRepository
.
queryCollectListByPagination
(
model
));
List
<
BLesson
>
interest
=
addNew
(
bLessonRepository
.
queryInterestedListByPagination
(
model
));
List
<
BLesson
>
interest
=
addNew
(
bLessonRepository
.
queryInterestedListByPagination
(
model
));
...
@@ -2062,6 +2064,10 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -2062,6 +2064,10 @@ public class BLessonServiceImpl implements BLessonService {
if
(
"1"
.
equals
(
bLesson
.
getIsNew
())){
if
(
"1"
.
equals
(
bLesson
.
getIsNew
())){
recommendCount
++;
recommendCount
++;
}
}
}
for
(
BLesson
bLesson
:
all
){
if
(
"1"
.
equals
(
bLesson
.
getIsNew
())){
allCount
++;
}
}
}
for
(
BLesson
bLesson
:
learn
){
for
(
BLesson
bLesson
:
learn
){
if
(
"1"
.
equals
(
bLesson
.
getIsNew
()))
if
(
"1"
.
equals
(
bLesson
.
getIsNew
()))
...
@@ -2081,6 +2087,7 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -2081,6 +2087,7 @@ public class BLessonServiceImpl implements BLessonService {
}
}
NewCountDTO
dto
=
new
NewCountDTO
();
NewCountDTO
dto
=
new
NewCountDTO
();
dto
.
setRecommend
(
recommendCount
);
dto
.
setRecommend
(
recommendCount
);
dto
.
setAll
(
allCount
);
dto
.
setCollect
(
collectCount
);
dto
.
setCollect
(
collectCount
);
dto
.
setLearn
(
learnCount
);
dto
.
setLearn
(
learnCount
);
dto
.
setInterest
(
interestCount
);
dto
.
setInterest
(
interestCount
);
...
...
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