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
e4373605
Commit
e4373605
authored
Oct 30, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改申请
parent
f28cea92
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
+14
-8
ShuntApplyController.java
...va/com/xxfc/platform/order/rest/ShuntApplyController.java
+1
-0
OrderRentVehicleService.java
.../xxfc/platform/order/service/OrderRentVehicleService.java
+1
-0
RentVehicleBookDTO.java
...va/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
+3
-2
VehiclePlatCataBiz.java
...ava/com/xxfc/platform/vehicle/biz/VehiclePlatCataBiz.java
+7
-4
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+2
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/ShuntApplyController.java
View file @
e4373605
...
...
@@ -307,6 +307,7 @@ public class ShuntApplyController extends BaseController<ShuntApplyBiz, ShuntApp
//rbd.setModelId(shuntApply.getModelId());
rbd
.
setBrandId
(
shuntApply
.
getBrandId
());
rbd
.
setCategoryId
(
shuntApply
.
getCategoryId
());
rbd
.
setGoodsType
(
shuntApply
.
getGoodsType
());
rbd
.
setParkBranchCompanyId
(
companyId
);
rbd
.
setStartCompanyId
(
companyId
);
rbd
.
setEndCompanyId
(
companyId
);
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/service/OrderRentVehicleService.java
View file @
e4373605
...
...
@@ -528,6 +528,7 @@ public class OrderRentVehicleService extends AbstractOrderHandle<OrderRentVehicl
depositAmount
=
depositAmount
.
add
(
detail
.
getTrafficDeposit
());
}
orderAmount
=
orderAmount
.
add
(
goodsAmount
).
add
(
depositAmount
);
realAmount
=
orderAmount
.
subtract
(
couponAmount
);
//生成订单明细
RentVehiclePriceVO
rvp
=
new
RentVehiclePriceVO
();
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/RentVehicleBookDTO.java
View file @
e4373605
...
...
@@ -24,6 +24,9 @@ public class RentVehicleBookDTO extends PageParam {
@ApiModelProperty
(
"型号id"
)
private
Integer
categoryId
;
@ApiModelProperty
(
"商品类型 1--房车;2--机车;3--游艇"
)
private
Integer
goodsType
;
/**
* 预定目标日期(开始)
*/
...
...
@@ -146,8 +149,6 @@ public class RentVehicleBookDTO extends PageParam {
Double
lon
;
@ApiModelProperty
(
"纬度"
)
Double
lat
;
@ApiModelProperty
(
"商品类型 1--房车;2--机车;3--游艇"
)
Integer
goodsType
;
@ApiModelProperty
(
"分类逗号分割"
)
String
catasStr
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehiclePlatCataBiz.java
View file @
e4373605
...
...
@@ -13,6 +13,7 @@ import com.github.wxiaoqi.security.common.vo.PageDataVO;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.RedisKey
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleCata
;
import
com.xxfc.platform.vehicle.entity.VehiclePlatCata
;
import
com.xxfc.platform.vehicle.mapper.VehiclePlatCataMapper
;
...
...
@@ -212,7 +213,7 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
//增加车型页面
if
(
sort
==
1
)
{
return
getList
();
return
getList
(
goodsType
);
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);;
...
...
@@ -221,13 +222,15 @@ public class VehiclePlatCataBiz extends BaseBiz<VehiclePlatCataMapper, VehiclePl
}
@Cache
(
key
=
RedisKey
.
BRANCH_COMPANY_CATA_LIST
)
private
ObjectRestResponse
getList
()
{
@Cache
(
key
=
RedisKey
.
BRANCH_COMPANY_CATA_LIST
+
"{1}"
)
private
ObjectRestResponse
getList
(
Integer
goodsType
)
{
//获取一级标签
Example
example
=
Example
.
builder
(
VehiclePlatCata
.
class
)
.
where
(
WeekendSqls
.<
VehiclePlatCata
>
custom
()
.
andEqualTo
(
VehiclePlatCata:
:
getParentId
,
0
)
.
andEqualTo
(
VehiclePlatCata:
:
getState
,
0
))
.
andEqualTo
(
VehiclePlatCata:
:
getState
,
0
)
.
andEqualTo
(
VehiclePlatCata:
:
getGoodsType
,
goodsType
)
)
.
orderByAsc
(
"isMore"
,
"rank"
)
.
build
();
//分页查询父类
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
e4373605
...
...
@@ -288,10 +288,10 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
@RequestMapping
(
value
=
"/rent/apply/usable-vehicle"
,
method
=
RequestMethod
.
POST
)
@IgnoreUserToken
public
ObjectRestResponse
<
PageDataVO
<
UsableVeicleVO
>>
applyUsableVehicle
(
@RequestBody
RentVehicleBookDTO
rbd
)
{
rbd
.
setRecordIntersection
(
Boolean
.
TRU
E
);
rbd
.
setRecordIntersection
(
Boolean
.
FALS
E
);
rbd
.
setLimit
(
100
);
rbd
.
setPage
(
1
);
rbd
.
setYearNo4Where
(
Boolean
.
TRUE
);
//
rbd.setYearNo4Where(Boolean.TRUE);
//查询可车辆信息
PageDataVO
<
UsableVeicleVO
>
pageDataVO
=
vehicleBiz
.
searchUsableVehicle
(
rbd
);
...
...
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