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
0a4904cb
Commit
0a4904cb
authored
Jul 27, 2022
by
Mahjong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
来佣比对增加保单跟踪状态
parent
80955531
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
+29
-1
yd-api/src/main/java/com/yd/api/commission/vo/lifecommission/ComeCommissionVO.java
+9
-0
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
+2
-2
No files found.
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
View file @
0a4904cb
...
@@ -536,7 +536,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
...
@@ -536,7 +536,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
String
charset
=
"UTF-8"
;
// 读取字符编码
String
charset
=
"UTF-8"
;
// 读取字符编码
String
[]
columnName
=
new
String
[]{
"序号"
,
"来佣编号"
,
"预计来佣年月"
,
"实际来佣年月"
,
"检核年月"
,
"银盾出单机构"
,
"保险公司"
,
"保险分公司"
,
String
[]
columnName
=
new
String
[]{
"序号"
,
"来佣编号"
,
"预计来佣年月"
,
"实际来佣年月"
,
"检核年月"
,
"银盾出单机构"
,
"保险公司"
,
"保险分公司"
,
"保单号"
,
"保费"
,
"来佣类型"
,
"来佣项目"
,
"来佣率"
,
"来佣金额"
,
"来佣状态 "
,
"经纪人"
,
"S3纵队"
,
"S2体系"
,
"S1分部"
,
"经纪人类型"
,
"保单号"
,
"保费"
,
"来佣类型"
,
"来佣项目"
,
"来佣率"
,
"来佣金额"
,
"来佣状态 "
,
"经纪人"
,
"S3纵队"
,
"S2体系"
,
"S1分部"
,
"经纪人类型"
,
"下单时间"
,
"购买方案"
,
"产品险种"
,
"保险种类"
,
"缴费年限"
,
"保障期间"
"下单时间"
,
"购买方案"
,
"产品险种"
,
"保险种类"
,
"缴费年限"
,
"保障期间"
,
"保单跟踪状态"
};
};
String
tableName
=
"YD_Export_ComeCommission"
;
String
tableName
=
"YD_Export_ComeCommission"
;
String
CSV_COLUMN_SEPARATOR
=
","
;
//CSV文件列分隔符
String
CSV_COLUMN_SEPARATOR
=
","
;
//CSV文件列分隔符
...
@@ -587,6 +587,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
...
@@ -587,6 +587,7 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
buf
.
append
(
info
.
getCategoryName
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCategoryName
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPayTerm
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPayTerm
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCoverageTerm
()
==
null
?
"/"
:
info
.
getCoverageTerm
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getCoverageTerm
()
==
null
?
"/"
:
info
.
getCoverageTerm
()).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
info
.
getPolicyTrackingStatus
()
==
null
?
"/"
:
handlePolicyTrackingStatus
(
info
.
getPolicyTrackingStatus
())).
append
(
CSV_COLUMN_SEPARATOR
);
buf
.
append
(
CSV_ROW_SEPARATOR
);
buf
.
append
(
CSV_ROW_SEPARATOR
);
}
}
...
@@ -630,5 +631,32 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
...
@@ -630,5 +631,32 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
return
""
;
return
""
;
}
}
}
}
public
static
String
handlePolicyTrackingStatus
(
Long
policyTrackingStatus
)
{
String
ret
=
null
;
if
(
policyTrackingStatus
==
1L
)
{
ret
=
"承保件"
;
}
else
if
(
policyTrackingStatus
==
2L
)
{
ret
=
"契撤件"
;
}
else
if
(
policyTrackingStatus
==
3L
)
{
ret
=
"减额缴清"
;
}
else
if
(
policyTrackingStatus
==
4L
)
{
ret
=
"失效件"
;
}
else
if
(
policyTrackingStatus
==
5L
)
{
ret
=
"协议退保/解约件"
;
}
else
if
(
policyTrackingStatus
==
6L
)
{
ret
=
"退保件"
;
}
else
if
(
policyTrackingStatus
==
7L
)
{
ret
=
"终止件"
;
}
else
if
(
policyTrackingStatus
==
8L
)
{
ret
=
"豁免保费"
;
}
else
if
(
policyTrackingStatus
==
9L
)
{
ret
=
"犹退件"
;
}
else
if
(
policyTrackingStatus
==
10L
)
{
ret
=
"保全件"
;
}
else
if
(
policyTrackingStatus
==
11L
)
{
ret
=
"理赔件"
;
}
return
ret
;
}
}
}
yd-api/src/main/java/com/yd/api/commission/vo/lifecommission/ComeCommissionVO.java
View file @
0a4904cb
...
@@ -47,6 +47,7 @@ public class ComeCommissionVO {
...
@@ -47,6 +47,7 @@ public class ComeCommissionVO {
private
Long
s1Id
;
private
Long
s1Id
;
private
Long
s2Id
;
private
Long
s2Id
;
private
Long
s3Id
;
private
Long
s3Id
;
private
Long
policyTrackingStatus
;
//保单跟踪状态
public
Long
getOrderId
()
{
public
Long
getOrderId
()
{
return
orderId
;
return
orderId
;
...
@@ -403,4 +404,12 @@ public class ComeCommissionVO {
...
@@ -403,4 +404,12 @@ public class ComeCommissionVO {
public
void
setYdBranchName
(
String
ydBranchName
)
{
public
void
setYdBranchName
(
String
ydBranchName
)
{
this
.
ydBranchName
=
ydBranchName
;
this
.
ydBranchName
=
ydBranchName
;
}
}
public
Long
getPolicyTrackingStatus
()
{
return
policyTrackingStatus
;
}
public
void
setPolicyTrackingStatus
(
Long
policyTrackingStatus
)
{
this
.
policyTrackingStatus
=
policyTrackingStatus
;
}
}
}
yd-api/src/main/resources/mapper/lifecommission/LifeCommissionMapper.xml
View file @
0a4904cb
...
@@ -46,14 +46,14 @@
...
@@ -46,14 +46,14 @@
oc.practitioner_id practitionerId,
oc.practitioner_id practitionerId,
o.ydBranchId,
o.ydBranchId,
o.broker_customer_id,
o.broker_customer_id,
o.policy_tracking_status policyTrackingStatus,
o.cover_term_type coverageTerm,
o.cover_term_type coverageTerm,
CONCAT(o.payment_term, (case o.payment_term_unit when 'Y' then '年' when 'M' then '月' else '年' END)) payTerm
CONCAT(o.payment_term, (case o.payment_term_unit when 'Y' then '年' when 'M' then '月' else '年' END)) payTerm
from ag_po_order_commission oc
from ag_po_order_commission oc
inner join
inner join
(SELECT id, order_price, product_id,
(SELECT id, order_price, product_id,
plan_id, insurer_id, order_date, config_level, cover_term, insurer_branch_id ydBranchId,
plan_id, insurer_id, order_date, config_level, cover_term, insurer_branch_id ydBranchId,
payment_term, payment_term_unit,broker_customer_id,
payment_term, payment_term_unit,broker_customer_id,
policy_tracking_status,
cover_term_type
cover_term_type
from ag_po_order t
from ag_po_order t
where t.status=3 and t.payment_status=3 and t.policy_no is not null
where t.status=3 and t.payment_status=3 and t.policy_no is not null
...
...
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