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
422256d0
Commit
422256d0
authored
Nov 03, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加特惠租车
parent
c99f8d0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
SpecialRent.java
...main/java/com/xxfc/platform/order/entity/SpecialRent.java
+14
-0
SpecialRentBiz.java
...main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
+3
-0
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/entity/SpecialRent.java
View file @
422256d0
...
@@ -243,4 +243,18 @@ public class SpecialRent implements Serializable {
...
@@ -243,4 +243,18 @@ public class SpecialRent implements Serializable {
@Column
(
name
=
"is_del"
)
@Column
(
name
=
"is_del"
)
private
Integer
isDel
;
private
Integer
isDel
;
/**
* 取车城市名称
*/
@Column
(
name
=
"start_city_name"
)
@ApiModelProperty
(
value
=
"取车城市名称"
)
private
String
startCityName
;
/**
* 还车城市名称
*/
@Column
(
name
=
"end_city_name"
)
@ApiModelProperty
(
value
=
"还车城市名称"
)
private
String
endCityName
;
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
View file @
422256d0
...
@@ -103,6 +103,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -103,6 +103,7 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
specialRent
.
setStartCompanyId
(
vehicle
.
getManageCompanyId
());
specialRent
.
setStartCompanyId
(
vehicle
.
getManageCompanyId
());
specialRent
.
setBrandId
(
vehicle
.
getBrandId
());
specialRent
.
setBrandId
(
vehicle
.
getBrandId
());
specialRent
.
setCategoryId
(
vehicle
.
getCategoryId
());
specialRent
.
setCategoryId
(
vehicle
.
getCategoryId
());
specialRent
.
setGoodsType
(
vehicle
.
getGoodsType
());
//缓存商品信息
//缓存商品信息
specialRent
.
setGoodsJson
(
JSONUtil
.
parse
(
vehicle
).
toString
());
specialRent
.
setGoodsJson
(
JSONUtil
.
parse
(
vehicle
).
toString
());
...
@@ -125,11 +126,13 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -125,11 +126,13 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
CompanyDetail
companyDetail
=
vehicleFeign
.
getCompanyDetail
(
specialRent
.
getEndCompanyId
()).
getData
();
CompanyDetail
companyDetail
=
vehicleFeign
.
getCompanyDetail
(
specialRent
.
getEndCompanyId
()).
getData
();
specialRent
.
setEndCompanyName
(
companyDetail
.
getName
());
specialRent
.
setEndCompanyName
(
companyDetail
.
getName
());
specialRent
.
setEndCityCode
(
companyDetail
.
getAddrCity
());
specialRent
.
setEndCityCode
(
companyDetail
.
getAddrCity
());
specialRent
.
setStartCityName
(
companyDetail
.
getCityName
());
}
}
if
(
null
!=
specialRent
.
getEndCompanyId
())
{
if
(
null
!=
specialRent
.
getEndCompanyId
())
{
CompanyDetail
companyDetail
=
vehicleFeign
.
getCompanyDetail
(
specialRent
.
getEndCompanyId
()).
getData
();
CompanyDetail
companyDetail
=
vehicleFeign
.
getCompanyDetail
(
specialRent
.
getEndCompanyId
()).
getData
();
specialRent
.
setEndCompanyName
(
companyDetail
.
getName
());
specialRent
.
setEndCompanyName
(
companyDetail
.
getName
());
specialRent
.
setEndCityCode
(
companyDetail
.
getAddrCity
());
specialRent
.
setEndCityCode
(
companyDetail
.
getAddrCity
());
specialRent
.
setEndCityName
(
companyDetail
.
getCityName
());
}
}
if
(
null
!=
specialRent
.
getCategoryId
())
{
if
(
null
!=
specialRent
.
getCategoryId
())
{
VehicleCategory
vehicleCategory
=
vehicleFeign
.
getVehicleCategory
(
specialRent
.
getCategoryId
()).
getData
();
VehicleCategory
vehicleCategory
=
vehicleFeign
.
getVehicleCategory
(
specialRent
.
getCategoryId
()).
getData
();
...
...
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