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
6c531ff5
Commit
6c531ff5
authored
Sep 04, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加公司
parent
a6f5939d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
9 deletions
+42
-9
OrderRentVehicleDetail.java
...om/xxfc/platform/order/entity/OrderRentVehicleDetail.java
+4
-4
OrderRentVehicleService.java
.../xxfc/platform/order/service/OrderRentVehicleService.java
+38
-5
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/OrderRentVehicleDetail.java
View file @
6c531ff5
...
...
@@ -363,15 +363,15 @@ public class OrderRentVehicleDetail implements Serializable {
@Column
(
name
=
"start_branch_id"
)
@ApiModelProperty
(
value
=
"出发隶属的企业id"
)
private
Integer
startBranchId
;
private
Long
startBranchId
;
@Column
(
name
=
"end_branch_id"
)
@ApiModelProperty
(
value
=
"结束隶属的企业id"
)
private
Integer
endBranchId
;
private
Long
endBranchId
;
@Column
(
name
=
"actual_end_branch_id"
)
@ApiModelProperty
(
value
=
"实际结束隶属的企业id"
)
private
Integer
actualEndBranchId
;
private
Long
actualEndBranchId
;
@Column
(
name
=
"actual_end_company_id"
)
@ApiModelProperty
(
value
=
"实际结束公司id"
)
...
...
@@ -379,7 +379,7 @@ public class OrderRentVehicleDetail implements Serializable {
@Column
(
name
=
"vehicle_branch_id"
)
@ApiModelProperty
(
value
=
"车辆隶属企业id"
)
private
Integer
vehicleBranchId
;
private
Long
vehicleBranchId
;
@Column
(
name
=
"vehicle_company_id"
)
@ApiModelProperty
(
value
=
"车辆公司(门店)id"
)
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderRentVehicleService.java
View file @
6c531ff5
...
...
@@ -33,10 +33,7 @@ import com.xxfc.platform.universal.constant.DictionaryKey;
import
com.xxfc.platform.universal.feign.ThirdFeign
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.AccompanyingItemType
;
import
com.xxfc.platform.vehicle.entity.BranchCompany
;
import
com.xxfc.platform.vehicle.entity.VehicleBookRecord
;
import
com.xxfc.platform.vehicle.entity.VehicleHolidayPriceInfo
;
import
com.xxfc.platform.vehicle.entity.VehicleModel
;
import
com.xxfc.platform.vehicle.entity.*
;
import
com.xxfc.platform.vehicle.feign.VehicleFeign
;
import
com.xxfc.platform.vehicle.pojo.RentVehicleBookDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.VehicleModelCalendarPriceDTO
;
...
...
@@ -128,7 +125,43 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
//设置新增字段
//开始公司(门店)
// if(null != bo.getStartCompanyId())
if
(
null
!=
bo
.
getStartCompanyId
())
{
List
<
BranchCompany
>
companyDetails
=
vehicleFeign
.
branchCompanyEntityList
(
BeanUtil
.
beanToMap
(
new
BranchCompany
(){{
setId
(
bo
.
getStartCompanyId
());
}},
false
,
true
)).
getData
();
if
(
null
!=
companyDetails
&&
companyDetails
.
size
()
>
0
)
{
bo
.
setStartBranchId
(
companyDetails
.
get
(
0
).
getCompanyId
());
}
}
//结束公司(门店)
if
(
null
!=
bo
.
getEndCompanyId
())
{
List
<
BranchCompany
>
companyDetails
=
vehicleFeign
.
branchCompanyEntityList
(
BeanUtil
.
beanToMap
(
new
BranchCompany
(){{
setId
(
bo
.
getEndCompanyId
());
}},
false
,
true
)).
getData
();
if
(
null
!=
companyDetails
&&
companyDetails
.
size
()
>
0
)
{
bo
.
setEndBranchId
(
companyDetails
.
get
(
0
).
getCompanyId
());
}
}
//所属公司(门店)
if
(
null
!=
bo
.
getVehicleId
())
{
Vehicle
vehicle
=
vehicleFeign
.
get
(
bo
.
getVehicleId
()).
getData
();
bo
.
setVehicleCompanyId
(
vehicle
.
getSubordinateBranch
());
List
<
BranchCompany
>
companyDetails
=
vehicleFeign
.
branchCompanyEntityList
(
BeanUtil
.
beanToMap
(
new
BranchCompany
(){{
setId
(
bo
.
getVehicleCompanyId
());
}},
false
,
true
)).
getData
();
if
(
null
!=
companyDetails
&&
companyDetails
.
size
()
>
0
)
{
bo
.
setVehicleBranchId
(
companyDetails
.
get
(
0
).
getCompanyId
());
}
}
}
public
void
initDictionary
()
{
...
...
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