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
b58d8550
Commit
b58d8550
authored
Mar 29, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
N22保单详情接口投保人,受益人类型
parent
c03862e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
+17
-15
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerBasicInfoServiceImpl.java
View file @
b58d8550
...
...
@@ -281,21 +281,23 @@ public class PractitionerBasicInfoServiceImpl implements PractitionerBasicInfoSe
List
<
InsuredInfo
>
insuredInfos
=
new
ArrayList
<>();
InsuredInfo
insuredInfo
;
for
(
ParticipantN22
insured
:
insureds
.
get
(
0
).
getParticipants
())
{
insuredInfo
=
new
InsuredInfo
();
insuredInfo
.
setRelationType
(
N22Utils
.
getN22RelationType
(
insured
.
getIdType
()));
insuredInfo
.
setName
(
insured
.
getFullName
());
insuredInfo
.
setMobileNo
(
insured
.
getMobile
());
insuredInfo
.
setGender
(
"1"
.
equals
(
insured
.
getGender
())
?
1
:
2
);
insuredInfo
.
setBirthDay
(
insured
.
getDateOfBirth
());
insuredInfo
.
setAge
(
CommonUtil
.
getAge
(
CommonUtil
.
stringParseDate
(
insured
.
getDateOfBirth
(),
"yyyy-MM-dd"
)));
idInfo
=
new
IDInfo
();
idInfo
.
setIdType
(
N22Utils
.
getN22IdType
(
insured
.
getIdType
()));
idInfo
.
setIdNo
(
insured
.
getIdNo
());
insuredInfo
.
setIdInfo
(
idInfo
);
insuredInfos
.
add
(
insuredInfo
);
// 2-被保人,3-受益人
if
(
"2"
.
equals
(
insured
.
getCustomerType
()))
{
insuredInfo
=
new
InsuredInfo
();
insuredInfo
.
setRelationType
(
N22Utils
.
getN22RelationType
(
insured
.
getIdType
()));
insuredInfo
.
setName
(
insured
.
getFullName
());
insuredInfo
.
setMobileNo
(
insured
.
getMobile
());
insuredInfo
.
setGender
(
"1"
.
equals
(
insured
.
getGender
())
?
1
:
2
);
insuredInfo
.
setBirthDay
(
insured
.
getDateOfBirth
());
insuredInfo
.
setAge
(
CommonUtil
.
getAge
(
CommonUtil
.
stringParseDate
(
insured
.
getDateOfBirth
(),
"yyyy-MM-dd"
)));
idInfo
=
new
IDInfo
();
idInfo
.
setIdType
(
N22Utils
.
getN22IdType
(
insured
.
getIdType
()));
idInfo
.
setIdNo
(
insured
.
getIdNo
());
insuredInfo
.
setIdInfo
(
idInfo
);
insuredInfos
.
add
(
insuredInfo
);
}
}
...
...
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