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
ab165859
Commit
ab165859
authored
Nov 05, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员分成记录信息
parent
b75f4d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
OrderVehicleCrosstownBiz.java
...com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
+11
-9
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderVehicleCrosstownBiz.java
View file @
ab165859
...
@@ -110,15 +110,15 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
...
@@ -110,15 +110,15 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
}
}
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
List
<
OrderVehicleCrosstownDto
>
list
=
mapper
.
selectByOrderId
(
orderVehicleCrosstownDto
);
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
for
(
OrderVehicleCrosstownDto
value
:
list
)
{
//
if (value != null && value.getOrperaterId() != null && value.getType() != 1) {
if
(
value
!=
null
&&
value
.
getOrperaterId
()
!=
null
&&
value
.
getType
()
!=
1
)
{
//
UserDTO userDTO = userFeign.userinfoByUid(value.getOrperaterId()).getData();
UserDTO
userDTO
=
userFeign
.
userinfoByUid
(
value
.
getOrperaterId
()).
getData
();
//
if (userDTO != null) {
if
(
userDTO
!=
null
)
{
//
CompanyDetail branchCompany = vehicleFeign.getCompanyDetail(userDTO.getCompanyId()).getData();
CompanyDetail
branchCompany
=
vehicleFeign
.
getCompanyDetail
(
userDTO
.
getCompanyId
()).
getData
();
//
if (branchCompany != null) {
if
(
branchCompany
!=
null
)
{
//
value.setCustomerPhone(branchCompany.getVehiceServicePhone());
value
.
setCustomerPhone
(
branchCompany
.
getVehiceServicePhone
());
//
}
}
//
}
}
//
}
}
if
(
value
.
getType
()
==
2
||
value
.
getType
()
==
3
)
{
if
(
value
.
getType
()
==
2
||
value
.
getType
()
==
3
)
{
List
<
Coupon
>
c
=
baseOrderBiz
.
getReturnCouponByOrderId
(
value
.
getOrderId
());
List
<
Coupon
>
c
=
baseOrderBiz
.
getReturnCouponByOrderId
(
value
.
getOrderId
());
...
@@ -256,10 +256,12 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
...
@@ -256,10 +256,12 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
if
(
null
==
userDTO
.
getCompanyIds
()
||
!
userDTO
.
getCompanyIds
().
contains
(
orderRentVehicleDetail
.
getStartCompanyId
()))
{
if
(
null
==
userDTO
.
getCompanyIds
()
||
!
userDTO
.
getCompanyIds
().
contains
(
orderRentVehicleDetail
.
getStartCompanyId
()))
{
return
ObjectRestResponse
.
createFailedResult
(
3501
,
"无交车权限"
);
return
ObjectRestResponse
.
createFailedResult
(
3501
,
"无交车权限"
);
}
}
userDTO
.
setCompanyId
(
orderRentVehicleDetail
.
getStartCompanyId
());
}
else
{
}
else
{
if
(
null
==
userDTO
.
getCompanyIds
()
||
!
userDTO
.
getCompanyIds
().
contains
(
orderRentVehicleDetail
.
getEndCompanyId
()))
{
if
(
null
==
userDTO
.
getCompanyIds
()
||
!
userDTO
.
getCompanyIds
().
contains
(
orderRentVehicleDetail
.
getEndCompanyId
()))
{
return
ObjectRestResponse
.
createFailedResult
(
3503
,
"无收车权限"
);
return
ObjectRestResponse
.
createFailedResult
(
3503
,
"无收车权限"
);
}
}
userDTO
.
setCompanyId
(
orderRentVehicleDetail
.
getEndCompanyId
());
}
}
Vehicle
vehicle
=
null
;
Vehicle
vehicle
=
null
;
RestResponse
<
Vehicle
>
vehicleRestResponse
=
vehicleFeign
.
findById
(
orderRentVehicleDetail
.
getVehicleId
());
RestResponse
<
Vehicle
>
vehicleRestResponse
=
vehicleFeign
.
findById
(
orderRentVehicleDetail
.
getVehicleId
());
...
...
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