Commit 422256d0 authored by 周健威's avatar 周健威

添加特惠租车

parent c99f8d0b
...@@ -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;
} }
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment