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
c71076f9
Commit
c71076f9
authored
Jan 18, 2022
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
龙虎榜与经纪人首页销售统计数据,把寿险与线上保单统一3
parent
90a6cbbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
31 deletions
+31
-31
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+7
-7
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
+24
-24
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
c71076f9
...
...
@@ -608,14 +608,14 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
private
void
disposalPractitionerInfo
(
PractitionerInfoForAchievement
practitionerInfo
,
Map
<
Integer
,
PractitionerBasicInfo
>
practitionerBasicInfoMap
,
Integer
time
,
Integer
platform
)
{
Double
fyc
=
practitionerInfo
.
getFyc
();
PractitionerRankInfo
practitionerRankInfo
=
null
;
Double
fycOther
;
//
PractitionerRankInfo practitionerRankInfo = null;
//
Double fycOther;
PractitionerBasicInfo
practitionerBasicInfoYD
=
practitionerBasicInfoMap
.
get
(
1
);
if
(
practitionerBasicInfoYD
!=
null
)
{
String
practitionerIdYD
=
practitionerBasicInfoYD
.
getPractitionerId
();
if
(!
Strings
.
isNullOrEmpty
(
practitionerIdYD
))
{
Long
practitionerId
=
Long
.
parseLong
(
practitionerIdYD
);
practitionerRankInfo
=
aclPractitionerDALService
.
getPractitionerRankInfoByPractitionerIdYD
(
practitionerId
,
time
,
platform
);
//
practitionerRankInfo = aclPractitionerDALService.getPractitionerRankInfoByPractitionerIdYD(practitionerId, time, platform);
// if (platform == 1) {
// PractitionerBasicInfo practitionerBasicInfoEG = practitionerBasicInfoMap.get(2);
// if (practitionerBasicInfoEG != null) {
...
...
@@ -628,10 +628,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// } else {
// practitionerRankInfo = aclPractitionerDALService.getPractitionerRankInfoByPractitionerIdYD(practitionerId, time, platform);
// }
fycOther
=
practitionerRankInfo
!=
null
?
practitionerRankInfo
.
getFyc
()
:
0
D
;
Double
fycSum
=
CommonUtil
.
doubleFormat
(
fyc
+
fycOther
,
2
);
if
(
fyc
Sum
!=
0
)
{
Double
completeRate
=
getCompletionRate
(
practitionerId
,
null
,
fyc
Sum
,
time
);
//
fycOther = practitionerRankInfo != null ? practitionerRankInfo.getFyc() : 0D;
//
Double fycSum = CommonUtil.doubleFormat(fyc + fycOther, 2);
if
(
fyc
!=
0
)
{
Double
completeRate
=
getCompletionRate
(
practitionerId
,
null
,
fyc
,
time
);
practitionerInfo
.
setCompletionRate
(
completeRate
);
}
}
...
...
yd-api/src/main/resources/mapper/customer/AclPractitionerMapper.xml
View file @
c71076f9
...
...
@@ -1316,14 +1316,14 @@
and YEAR(f.order_date) = YEAR(now())
</otherwise>
</choose>
<choose
>
<when
test=
"platform == 1"
>
and o.product_category_id != 8 -- o.flag != 'Manual'
</when
>
<otherwise
>
and o.product_category_id = 8
</otherwise
>
</choose
>
<!-- <choose> --
>
<!-- <when test="platform == 1"> --
>
<!-- and o.product_category_id != 8 -->
<!-- </when> --
>
<!-- <otherwise> --
>
<!-- and o.product_category_id = 8 -->
<!-- </otherwise> --
>
<!-- </choose> --
>
group by p.id
) t WHERE t.count > 0
...
...
@@ -1373,14 +1373,14 @@
and YEAR(f.order_date) = YEAR(now())
</otherwise>
</choose>
<choose
>
<when
test=
"platform == 1"
>
and o.product_category_id != 8 -- o.flag != 'Manual'
</when
>
<otherwise
>
and o.product_category_id = 8
</otherwise
>
</choose
>
<!-- <choose> --
>
<!-- <when test="platform == 1"> --
>
<!-- and o.product_category_id != 8 -->
<!-- </when> --
>
<!-- <otherwise> --
>
<!-- and o.product_category_id = 8 -->
<!-- </otherwise> --
>
<!-- </choose> --
>
group by p.id
</select>
...
...
@@ -1645,14 +1645,14 @@
and YEAR(f.order_date) = YEAR(now())
</otherwise>
</choose>
<choose
>
<when
test=
"platform == 1"
>
and o.product_category_id != 8 -- o.flag != 'Manual'
</when
>
<otherwise
>
and o.product_category_id = 8
</otherwise
>
</choose
>
<!-- <choose> --
>
<!-- <when test="platform == 1"> --
>
<!-- and o.product_category_id != 8 -->
<!-- </when> --
>
<!-- <otherwise> --
>
<!-- and o.product_category_id = 8 -->
<!-- </otherwise> --
>
<!-- </choose> --
>
</select>
<select
id=
"findPayScaleByPractitionerEG"
resultType=
"com.yd.api.practitioner.vo.payscale.PayScaleInfo"
>
...
...
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