Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
5ac1a6d0
Commit
5ac1a6d0
authored
Dec 04, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
9aea141a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
OrderRentVehicleBiz.java
...java/com/xxfc/platform/order/biz/OrderRentVehicleBiz.java
+24
-3
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderRentVehicleBiz.java
View file @
5ac1a6d0
...
@@ -161,15 +161,35 @@ public class OrderRentVehicleBiz extends BaseBiz<OrderRentVehicleDetailMapper, O
...
@@ -161,15 +161,35 @@ public class OrderRentVehicleBiz extends BaseBiz<OrderRentVehicleDetailMapper, O
if
(
SYS_TRUE
==
vo
.
getNeedPersonInsurance
()
&&
StrUtil
.
isNotBlank
(
vo
.
getInsureUserIds
())){
if
(
SYS_TRUE
==
vo
.
getNeedPersonInsurance
()
&&
StrUtil
.
isNotBlank
(
vo
.
getInsureUserIds
())){
String
buyInsureIdCard
=
""
;
String
buyInsureIdCard
=
""
;
String
buyInsureName
=
""
;
String
buyInsureName
=
""
;
String
buyInsurePhone
=
vo
.
getAppUserDTO
().
getUsername
();
IdInformation
idInformation
=
thirdFeign
.
getOneByUserId
(
vo
.
getAppUserDTO
().
getUserid
());
IdInformation
idInformation
=
thirdFeign
.
getOneByUserId
(
vo
.
getAppUserDTO
().
getUserid
());
if
(
null
==
idInformation
)
{
if
(
null
==
idInformation
)
{
String
finalBuyInsurePhone
=
buyInsurePhone
;
List
<
InsureUser
>
insureUsers
=
insureUserBiz
.
selectList
(
new
InsureUser
(){{
List
<
InsureUser
>
insureUsers
=
insureUserBiz
.
selectList
(
new
InsureUser
(){{
setUserid
(
vo
.
getAppUserDTO
().
getUserid
());
setUserid
(
vo
.
getAppUserDTO
().
getUserid
());
setPhone
(
vo
.
getAppUserDTO
().
getUsername
()
);
setPhone
(
finalBuyInsurePhone
);
setIsdel
(
SYS_FALSE
);
setIsdel
(
SYS_FALSE
);
}});
}});
if
(
CollUtil
.
isEmpty
(
insureUsers
))
{
if
(
CollUtil
.
isEmpty
(
insureUsers
))
{
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
,
Sets
.
newSet
(
"无法获取投保人信息"
));
List
<
InsureUser
>
insureUsers2
=
insureUserBiz
.
selectByWeekend
(
w
->
{
w
.
andEqualTo
(
InsureUser:
:
getUserid
,
vo
.
getAppUserDTO
().
getUserid
());
w
.
andEqualTo
(
InsureUser:
:
getIsdel
,
SYS_FALSE
);
w
.
andIsNotNull
(
InsureUser:
:
getPhone
);
return
w
;
});
if
(
CollUtil
.
isEmpty
(
insureUsers2
))
{
List
<
InsureUser
>
insureUsers3
=
insureUserBiz
.
selectByWeekend
(
w
->
{
w
.
andEqualTo
(
InsureUser:
:
getUserid
,
vo
.
getAppUserDTO
().
getUserid
());
w
.
andEqualTo
(
InsureUser:
:
getIsdel
,
SYS_FALSE
);
return
w
;
});
buyInsureIdCard
=
insureUsers3
.
get
(
0
).
getIdCard
();
buyInsureName
=
insureUsers3
.
get
(
0
).
getName
();
}
else
{
buyInsureIdCard
=
insureUsers2
.
get
(
0
).
getIdCard
();
buyInsureName
=
insureUsers2
.
get
(
0
).
getName
();
buyInsurePhone
=
insureUsers2
.
get
(
0
).
getPhone
();
}
}
else
{
}
else
{
buyInsureIdCard
=
insureUsers
.
get
(
0
).
getIdCard
();
buyInsureIdCard
=
insureUsers
.
get
(
0
).
getIdCard
();
buyInsureName
=
insureUsers
.
get
(
0
).
getName
();
buyInsureName
=
insureUsers
.
get
(
0
).
getName
();
...
@@ -187,10 +207,11 @@ public class OrderRentVehicleBiz extends BaseBiz<OrderRentVehicleDetailMapper, O
...
@@ -187,10 +207,11 @@ public class OrderRentVehicleBiz extends BaseBiz<OrderRentVehicleDetailMapper, O
}
else
{
}
else
{
String
finalBuyInsureIdCard
=
buyInsureIdCard
;
String
finalBuyInsureIdCard
=
buyInsureIdCard
;
String
finalBuyInsureName
=
buyInsureName
;
String
finalBuyInsureName
=
buyInsureName
;
String
finalBuyInsurePhone1
=
buyInsurePhone
;
bo
.
getInsurances
().
add
(
new
OrderPersonInsurance
(){{
bo
.
getInsurances
().
add
(
new
OrderPersonInsurance
(){{
setBuyInsureIdCard
(
finalBuyInsureIdCard
);
setBuyInsureIdCard
(
finalBuyInsureIdCard
);
setBuyInsureName
(
finalBuyInsureName
);
setBuyInsureName
(
finalBuyInsureName
);
setBuyInsurePhone
(
vo
.
getAppUserDTO
().
getUsername
()
);
setBuyInsurePhone
(
finalBuyInsurePhone1
);
setIdCard
(
insureUser
.
getIdCard
());
setIdCard
(
insureUser
.
getIdCard
());
setName
(
insureUser
.
getName
());
setName
(
insureUser
.
getName
());
}});
}});
...
...
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