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
e15464af
Commit
e15464af
authored
Nov 03, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-chw' of
http://113.105.137.151:22280/youjj/cloud-platform
into dev-chw
parents
2bcfe3fb
39b9c460
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
SpecialRentBiz.java
...main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
+4
-2
VehicleFeign.java
...in/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
+4
-0
VehicleVO.java
...ain/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
+1
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/SpecialRentBiz.java
View file @
e15464af
...
@@ -90,12 +90,14 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -90,12 +90,14 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
*/
*/
public
void
addRent
(
@RequestBody
SpecialRent
specialRent
,
UserDTO
userDTO
)
{
public
void
addRent
(
@RequestBody
SpecialRent
specialRent
,
UserDTO
userDTO
)
{
AssertUtils
.
isBlank
(
userDTO
);
AssertUtils
.
isBlank
(
userDTO
);
AssertUtils
.
isBlank
(
specialRent
.
getUnitPrice
());
if
(
StrUtil
.
isBlank
(
specialRent
.
getVehicleId
()))
{
if
(
StrUtil
.
isBlank
(
specialRent
.
getVehicleId
()))
{
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
);
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
);
}
}
//Vehicle vehicle = vehicleFeign.get(specialRent.getVehicleId()).getData();
//Vehicle vehicle = vehicleFeign.get(specialRent.getVehicleId()).getData();
VehicleVO
vehicle
=
vehicleFeign
.
getVehicleDetail
(
specialRent
.
getVehicleId
()).
getData
();
VehicleVO
vehicle
=
vehicleFeign
.
getVehicleDetail
(
specialRent
.
getVehicleId
()).
getData
();
vehicle
.
setVehicleExtensions
(
vehicleFeign
.
vehicleEextensionTree
(
specialRent
.
getVehicleId
()).
getData
());
if
(
null
==
vehicle
)
{
if
(
null
==
vehicle
)
{
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
);
throw
new
BaseException
(
ResultCode
.
PARAM_ILLEGAL_CODE
);
...
@@ -184,8 +186,8 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
...
@@ -184,8 +186,8 @@ public class SpecialRentBiz extends BaseBiz<SpecialRentMapper, SpecialRent> {
}
}
Date
endDateTime
=
DateUtil
.
date
(
specialRent
.
getEndTime
());
Date
endDateTime
=
DateUtil
.
date
(
specialRent
.
getEndTime
());
Long
delayTime
=
DateUtil
.
date
().
getTime
()
-
DateUtil
.
offsetHour
(
endDateTime
,
-
1
).
getTime
();
Long
delayTime
=
DateUtil
.
offsetHour
(
endDateTime
,
-
1
).
getTime
()
-
DateUtil
.
date
(
).
getTime
();
specialRent
.
setOverTime
(
delayTime
);
specialRent
.
setOverTime
(
DateUtil
.
offsetHour
(
endDateTime
,
-
1
).
getTime
()
);
insertSelective
(
specialRent
);
insertSelective
(
specialRent
);
// rabbitProduct.sendApplyRequireDelayMessage(baseBiz.selectById(shuntApply.getId()), delayTime);
// rabbitProduct.sendApplyRequireDelayMessage(baseBiz.selectById(shuntApply.getId()), delayTime);
rabbitProduct
.
sendSpecialDelayMessage
(
selectById
(
specialRent
.
getId
()),
delayTime
);
rabbitProduct
.
sendSpecialDelayMessage
(
selectById
(
specialRent
.
getId
()),
delayTime
);
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/feign/VehicleFeign.java
View file @
e15464af
...
@@ -73,6 +73,10 @@ public interface VehicleFeign {
...
@@ -73,6 +73,10 @@ public interface VehicleFeign {
@RequestMapping
(
value
=
"/app/vehicle/app/unauth/detail/{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/app/vehicle/app/unauth/detail/{id}"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
VehicleVO
>
getVehicleDetail
(
@PathVariable
(
"id"
)
String
id
);
public
ObjectRestResponse
<
VehicleVO
>
getVehicleDetail
(
@PathVariable
(
"id"
)
String
id
);
//查询扩展信息
@RequestMapping
(
value
=
"/app/vehicleEextension/app/unauth/tree"
,
method
=
RequestMethod
.
GET
)
public
ObjectRestResponse
<
List
<
VehicleExtensionVO
>>
vehicleEextensionTree
(
@RequestParam
(
value
=
"vehicleId"
)
String
vehicleId
);
//租车拒绝预约
//租车拒绝预约
@RequestMapping
(
value
=
"/vehicleInfo/rent/book/reject/{bookRecordId}"
,
method
=
RequestMethod
.
PUT
)
@RequestMapping
(
value
=
"/vehicleInfo/rent/book/reject/{bookRecordId}"
,
method
=
RequestMethod
.
PUT
)
public
RestResponse
<
Integer
>
rentRejectVehicleBooking
(
@PathVariable
(
value
=
"bookRecordId"
)
Long
bookRecordId
);
public
RestResponse
<
Integer
>
rentRejectVehicleBooking
(
@PathVariable
(
value
=
"bookRecordId"
)
Long
bookRecordId
);
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/vo/VehicleVO.java
View file @
e15464af
...
@@ -69,7 +69,6 @@ public class VehicleVO extends Vehicle {
...
@@ -69,7 +69,6 @@ public class VehicleVO extends Vehicle {
private
Map
<
String
,
Object
>
handleOption
;
// 可操作的选项
private
Map
<
String
,
Object
>
handleOption
;
// 可操作的选项
private
List
<
VehicleExtensionVO
>
vehicleExtensions
;
}
}
\ No newline at end of file
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