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
0d281f9d
Commit
0d281f9d
authored
Jun 09, 2022
by
wenyang
Committed by
jianan
Jul 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
渠道规则开发3(执行关账、计算个税、预览薪资单、销售保单明细导出)
parent
34a0f389
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
5 deletions
+37
-5
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
+2
-2
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/FortunePayToOrderInfo.java
+27
-0
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/WithdrawLabelInfo.java
+1
-1
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+7
-2
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsFortuneServiceImpl.java
View file @
0d281f9d
...
...
@@ -1275,7 +1275,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
FortunePayToOrderInfo
info
=
fortunePayToOrderInfos
.
get
(
i
);
//遍历每个对象
buf
.
append
(
i
+
1
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPayoutYearmonth
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPractitionerName
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPractitionerName
()
==
null
?
info
.
getChannelName
()
:
info
.
getPractitionerName
()
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionAmount
()
==
null
?
0
:
info
.
getCommissionAmount
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getReferralAmount
()
==
null
?
0
:
info
.
getReferralAmount
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getFycAmount
()
==
null
?
0
:
info
.
getFycAmount
()).
append
(
CSV_COLUMN_SEPARATOR
);
...
...
@@ -1284,7 +1284,7 @@ public class AgmsFortuneServiceImpl implements AgmsFortuneService {
buf
.
append
(
info
.
getCommissionRate
()
==
null
?
0
:
info
.
getCommissionRate
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionPayoutStatus
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCommissionType
()
==
null
?
""
:
info
.
getCommissionType
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getMobileNo
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getMobileNo
()
==
null
?
info
.
getContactPhone
()
:
info
.
getMobileNo
()
).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPractitionerLevel
()
==
null
?
""
:
info
.
getPractitionerLevel
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getInsurerBranchName
()
==
null
?
""
:
info
.
getInsurerBranchName
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getInsurerBranchDeptName
()
==
null
?
""
:
info
.
getInsurerBranchDeptName
()).
append
(
CSV_COLUMN_SEPARATOR
);
...
...
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/FortunePayToOrderInfo.java
View file @
0d281f9d
...
...
@@ -98,6 +98,15 @@ public class FortunePayToOrderInfo {
*/
private
BigDecimal
fycAmount
;
/**
* 渠道名称
*/
private
String
channelName
;
/**
* 渠道联系人手机号
*/
private
String
contactPhone
;
/**
* 获取 保险公司
...
...
@@ -423,6 +432,22 @@ public class FortunePayToOrderInfo {
this
.
fycAmount
=
fycAmount
;
}
public
String
getChannelName
()
{
return
channelName
;
}
public
void
setChannelName
(
String
channelName
)
{
this
.
channelName
=
channelName
;
}
public
String
getContactPhone
()
{
return
contactPhone
;
}
public
void
setContactPhone
(
String
contactPhone
)
{
this
.
contactPhone
=
contactPhone
;
}
@Override
public
String
toString
()
{
return
"FortunePayToOrderInfo{"
+
...
...
@@ -444,6 +469,8 @@ public class FortunePayToOrderInfo {
", insurerBranchDeptName='"
+
insurerBranchDeptName
+
'\''
+
", subordinateSystemName='"
+
subordinateSystemName
+
'\''
+
", fycAmount="
+
fycAmount
+
", channelName="
+
channelName
+
", contactPhone="
+
contactPhone
+
'}'
;
}
}
...
...
yd-api/src/main/java/com/yd/dal/entity/agms/fortune/WithdrawLabelInfo.java
View file @
0d281f9d
...
...
@@ -3,7 +3,6 @@ package com.yd.dal.entity.agms.fortune;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.Date
;
/**
* @author xxy
...
...
@@ -158,6 +157,7 @@ public class WithdrawLabelInfo {
*匹配佣奖率的金额
*/
private
BigDecimal
calculationAmount
;
private
String
channelType
;
}
...
...
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
0d281f9d
...
...
@@ -209,7 +209,9 @@
dept.name insurerBranchDeptName,
sub.name subordinateSystemName,
ib.branch_name insurerBranchName,
f.fyc_amount fycAmount
f.fyc_amount fycAmount,
cha.name channelName,
cha.contact_phone contactPhone
from ag_acl_customer_fortune f
left join ag_po_order o on o.id = f.order_id
left join ag_product_plan pp on pp.id = o.plan_id
...
...
@@ -217,6 +219,7 @@
left join ag_acl_insurer i on o.insurer_id = i.id
left join ag_acl_customer_fortune_payout_batch pb on pb.id = f.payout_batch_id
LEFT JOIN ag_acl_practitioner pra ON pra.customer_id = f.customer_id
LEFT JOIN ag_acl_channel_new cha ON cha.customer_id = f.customer_id
LEFT JOIN ag_acl_insurer_branch ib on ib.id = pra.insurer_branch_id
LEFT JOIN ag_acl_insurer_branch_dept dept ON pra.dept_id = dept.id
LEFT JOIN ag_acl_practitioner_subordinate_system sub ON sub.id = pra.subordinate_system_id
...
...
@@ -269,6 +272,7 @@
<result
column=
"calculationFormula"
jdbcType=
"VARCHAR"
property=
"calculationFormula"
/>
<result
column=
"calculationRate"
jdbcType=
"DECIMAL"
property=
"calculationRate"
/>
<result
column=
"calculationAmount"
jdbcType=
"DECIMAL"
property=
"calculationAmount"
/>
<result
column=
"channelType"
jdbcType=
"VARCHAR"
property=
"channelType"
/>
</resultMap>
...
...
@@ -291,7 +295,8 @@
if(salary.taxout_amount is null,0,salary.taxout_amount) taxAmount,
if(salary.net_amount is null,0,salary.net_amount) afterTaxAmount,
ib.id insurerBranchId,
salary.is_active isActive
salary.is_active isActive,
f.channel_type channelType
from ag_acl_customer_fortune_pay pay
inner join ag_acl_customer_fortune f on f.fortune_payed_id = pay.id
inner join ag_acl_customer_fortune_payout_batch pb on pb.id = f.payout_batch_id
...
...
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