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
9965868b
Commit
9965868b
authored
Apr 23, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的团队寿险数据统计N22问题1
parent
dd5b0306
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
47 deletions
+18
-47
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+15
-4
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/Achieve.java
+3
-43
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
9965868b
...
...
@@ -316,15 +316,18 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 获取本人的数据
BeanPropertyValueEqualsPredicate
predicate
=
new
BeanPropertyValueEqualsPredicate
(
"name"
,
name
);
List
<
PractitionerRankInfo
>
list
=
(
List
<
PractitionerRankInfo
>)
CollectionUtils
.
select
(
rankInfoList
,
predicate
);
PractitionerRankInfo
info
=
list
.
get
(
0
);
PractitionerRankInfo
info
=
null
;
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
info
=
list
.
get
(
0
);
info
.
setPractitionerId
(
practitionerBasicInfo
.
getPractitionerId
());
}
// 排序---1-保费,2-佣金,3-件数
if
(
2
==
type
)
{
if
(
2
==
type
)
{
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyc
).
reversed
());
}
else
if
(
3
==
type
)
{
}
else
if
(
3
==
type
)
{
rankInfoList
.
sort
(
Comparator
.
comparingInt
(
PractitionerRankInfo:
:
getCount
).
reversed
());
}
else
{
}
else
{
rankInfoList
.
sort
(
Comparator
.
comparingDouble
(
PractitionerRankInfo:
:
getFyp
).
reversed
());
}
// 集合元素过多,只获取排序后的前10个元素
...
...
@@ -337,7 +340,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
System
.
out
.
println
(
subList
.
size
());
if
(
null
!=
info
)
{
subList
.
add
(
info
);
}
return
subList
;
}
...
...
@@ -2610,6 +2615,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
throw
new
Exception
(
"N22查询我管的人错误"
);
}
List
<
MyStaff
>
staffArray
=
myStaffSearchResponseVO
.
getResponseBody
().
getStaffArray
();
if
(
myStaffSearchResponseVO
.
getResponseBody
()
==
null
||
CollectionUtils
.
isEmpty
(
myStaffSearchResponseVO
.
getResponseBody
().
getStaffArray
()))
{
throw
new
Exception
(
"N22查询我管的人错误"
);
}
List
<
String
>
nameList
=
new
ArrayList
<>();
for
(
MyStaff
myStaff
:
staffArray
)
{
nameList
.
add
(
myStaff
.
getManage_StaffName
());
...
...
@@ -2619,6 +2627,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
for
(
AclPractitioner
item
:
practitionerList
){
nameList
.
add
(
item
.
getName
());
}
System
.
out
.
println
(
nameList
);
// 3.通过姓名查询手机号
List
<
PractitionerInfo
>
practitionerInfoList
=
aclPractitionerDALService
.
findPractitionerInfoByNameList
(
nameList
);
...
...
@@ -2650,6 +2659,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
List
<
Achieve
>
achieveList
=
searchStaffAchievementResponseVO
.
getResponseBody
().
getAchieveList
();
// 5.交集
List
<
Achieve
>
intersection
=
achieveList
.
stream
().
filter
(
item
->
nameList
.
contains
(
item
.
getDescription
())).
collect
(
toList
());
System
.
out
.
println
(
"看看交集"
);
System
.
out
.
println
(
intersection
);
// 6.组装
List
<
SubordinateSystemMemberInfoE
>
subordinateSystemMemberInfoEList
=
new
ArrayList
<>();
...
...
yd-api/src/main/java/com/yd/rmi/n22/salary/pojo/Achieve.java
View file @
9965868b
package
com
.
yd
.
rmi
.
n22
.
salary
.
pojo
;
import
lombok.Data
;
@Data
public
class
Achieve
{
private
String
ID
;
...
...
@@ -14,47 +17,4 @@ public class Achieve {
private
int
SucNumber
;
private
Double
StandardPREMIUM
;
public
void
setID
(
String
ID
){
this
.
ID
=
ID
;
}
public
String
getID
(){
return
this
.
ID
;
}
public
void
setDescription
(
String
Description
){
this
.
Description
=
Description
;
}
public
String
getDescription
(){
return
this
.
Description
;
}
public
void
setSearchType
(
String
SearchType
){
this
.
SearchType
=
SearchType
;
}
public
String
getSearchType
(){
return
this
.
SearchType
;
}
public
void
setFYC
(
Double
FYC
){
this
.
FYC
=
FYC
;
}
public
Double
getFYC
(){
return
this
.
FYC
;
}
public
void
setFYP
(
Double
FYP
){
this
.
FYP
=
FYP
;
}
public
Double
getFYP
(){
return
this
.
FYP
;
}
public
void
setSucNumber
(
int
SucNumber
){
this
.
SucNumber
=
SucNumber
;
}
public
int
getSucNumber
(){
return
this
.
SucNumber
;
}
public
void
setStandardPREMIUM
(
Double
StandardPREMIUM
){
this
.
StandardPREMIUM
=
StandardPREMIUM
;
}
public
Double
getStandardPREMIUM
(){
return
this
.
StandardPREMIUM
;
}
}
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