Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
3b5499b9
Commit
3b5499b9
authored
Apr 14, 2022
by
wenyang
Committed by
akexiu
Apr 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赢家平台-团队成员活动量得分倒序排序【1:天;2:周;3:月(不传默认2:周)】
parent
ef8eb42b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
+7
-7
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/ScheduleTrackServiceImpl.java
View file @
3b5499b9
...
@@ -294,7 +294,7 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -294,7 +294,7 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
List
<
AclCustomer
>
findByObjSortable
=
aclPractitionerDALService
.
getAclCustomers
(
practitionerId
,
null
);
List
<
AclCustomer
>
findByObjSortable
=
aclPractitionerDALService
.
getAclCustomers
(
practitionerId
,
null
);
if
(
null
==
findByObjSortable
){
if
(
null
==
findByObjSortable
){
resp
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"630028"
)));
resp
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"630028"
)));
return
resp
;
//
return resp;
}
}
// 获取本月第一天
// 获取本月第一天
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
...
@@ -354,21 +354,21 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
...
@@ -354,21 +354,21 @@ public class ScheduleTrackServiceImpl implements ScheduleTrackService {
public
int
compare
(
PersonalPEPScore
o1
,
PersonalPEPScore
o2
)
{
public
int
compare
(
PersonalPEPScore
o1
,
PersonalPEPScore
o2
)
{
if
(
"1"
.
equals
(
requestVO
.
getSortType
())){
if
(
"1"
.
equals
(
requestVO
.
getSortType
())){
if
(
o1
!=
null
&&
o2
!=
null
)
{
if
(
o1
!=
null
&&
o2
!=
null
)
{
return
o
1
.
getDayScore
().
compareTo
(
o2
.
getDayScore
());
return
o
2
.
getDayScore
().
compareTo
(
o1
.
getDayScore
());
}
else
{
}
else
{
return
o
1
==
null
?
1
:
-
1
;
return
o
2
==
null
?
1
:
-
1
;
}
}
}
else
if
(
"3"
.
equals
(
requestVO
.
getSortType
())){
}
else
if
(
"3"
.
equals
(
requestVO
.
getSortType
())){
if
(
o1
!=
null
&&
o2
!=
null
)
{
if
(
o1
!=
null
&&
o2
!=
null
)
{
return
o
1
.
getMonthScore
().
compareTo
(
o2
.
getMonthScore
());
return
o
2
.
getMonthScore
().
compareTo
(
o1
.
getMonthScore
());
}
else
{
}
else
{
return
o
1
==
null
?
1
:
-
1
;
return
o
2
==
null
?
1
:
-
1
;
}
}
}
else
{
}
else
{
if
(
o1
!=
null
&&
o2
!=
null
)
{
if
(
o1
!=
null
&&
o2
!=
null
)
{
return
o
1
.
getWeekScore
().
compareTo
(
o2
.
getWeekScore
());
return
o
2
.
getWeekScore
().
compareTo
(
o1
.
getWeekScore
());
}
else
{
}
else
{
return
o
1
==
null
?
1
:
-
1
;
return
o
2
==
null
?
1
:
-
1
;
}
}
}
}
}
}
...
...
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