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
24303dbf
Commit
24303dbf
authored
Dec 31, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改租车预约车辆时间
parent
238d8c9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
UsableVeicleDTO.java
.../java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
+10
-3
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+8
-4
RentVehicleController.java
...com/xxfc/platform/vehicle/rest/RentVehicleController.java
+1
-1
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/UsableVeicleDTO.java
View file @
24303dbf
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
;
package
com
.
xxfc
.
platform
.
vehicle
.
pojo
;
import
com.github.wxiaoqi.security.common.constant.CommonConstants
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
com.xxfc.platform.vehicle.entity.VehiclePlatCata
;
import
com.xxfc.platform.vehicle.entity.VehiclePlatCata
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -27,6 +28,10 @@ public class UsableVeicleDTO extends PageParam {
...
@@ -27,6 +28,10 @@ public class UsableVeicleDTO extends PageParam {
@ApiModelProperty
(
hidden
=
true
)
@ApiModelProperty
(
hidden
=
true
)
String
endDate
;
String
endDate
;
@ApiModelProperty
(
hidden
=
true
)
@ApiModelProperty
(
hidden
=
true
)
String
startDateTime
;
@ApiModelProperty
(
hidden
=
true
)
String
endDateTime
;
@ApiModelProperty
(
hidden
=
true
)
String
startDateExtend
;
String
startDateExtend
;
@ApiModelProperty
(
hidden
=
true
)
@ApiModelProperty
(
hidden
=
true
)
String
endDateExtend
;
String
endDateExtend
;
...
@@ -66,13 +71,15 @@ public class UsableVeicleDTO extends PageParam {
...
@@ -66,13 +71,15 @@ public class UsableVeicleDTO extends PageParam {
public
void
setStartDateTamp
(
Long
startDateTamp
)
{
public
void
setStartDateTamp
(
Long
startDateTamp
)
{
this
.
startDateTamp
=
startDateTamp
;
this
.
startDateTamp
=
startDateTamp
;
this
.
startDate
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
startDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
startDate
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
startDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
startDateTime
=
CommonConstants
.
DATE_TIME_LINE_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
startDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
startDateExtend
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
startDateTamp
),
ZoneOffset
.
ofHours
(
8
)).
minusDays
(
1L
));
this
.
startDateExtend
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
startDateTamp
),
ZoneOffset
.
ofHours
(
8
)).
minusDays
(
1L
));
}
}
public
void
setEndDateTamp
(
Long
endDateTamp
)
{
public
void
setEndDateTamp
(
Long
endDateTamp
)
{
this
.
endDateTamp
=
endDateTamp
;
this
.
endDateTamp
=
endDateTamp
;
this
.
endDate
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
endDate
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
endDateExtend
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)).
plusDays
(
1L
));
this
.
endDateTime
=
CommonConstants
.
DATE_TIME_LINE_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)));
this
.
endDateExtend
=
DEFAULT_DATE_TIME_FORMATTER
.
format
(
LocalDateTime
.
ofInstant
(
Instant
.
ofEpochMilli
(
endDateTamp
),
ZoneOffset
.
ofHours
(
8
)).
plusDays
(
1L
));
}
}
// private Boolean isTest;
// private Boolean isTest;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
24303dbf
...
@@ -1213,8 +1213,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -1213,8 +1213,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
}
else
{
}
else
{
notBookedDates
=
convertDatePeriod2List
(
dto
.
getStartDate
(),
notBookedDates
=
convertDatePeriod2List
(
dto
.
getStartDate
(),
dto
.
getEndDate
());
dto
.
getEndDate
());
dto
.
setStartDateExtend
(
dto
.
getStartDate
());
dto
.
setStartDateExtend
(
dto
.
getStartDateTime
());
dto
.
setEndDateExtend
(
dto
.
getEndDate
());
dto
.
setEndDateExtend
(
dto
.
getEndDateTime
());
// dto.setStartDateExtend(dto.getStartDate());
// dto.setEndDateExtend(dto.getEndDate());
params
=
BeanUtil
.
beanToMap
(
dto
);
params
=
BeanUtil
.
beanToMap
(
dto
);
}
}
}
}
...
@@ -1249,8 +1251,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -1249,8 +1251,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
StringUtils
.
isNotBlank
(
dto
.
getBookEndDate
()))
{
StringUtils
.
isNotBlank
(
dto
.
getBookEndDate
()))
{
notBookedDates
=
convertDatePeriod2List
(
dto
.
getBookStartDate
(),
notBookedDates
=
convertDatePeriod2List
(
dto
.
getBookStartDate
(),
dto
.
getBookEndDate
());
dto
.
getBookEndDate
());
dto
.
setStartDateExtend
(
dto
.
getBookStartDate
());
// dto.setStartDateExtend(dto.getBookStartDate());
dto
.
setEndDateExtend
(
dto
.
getBookEndDate
());
// dto.setEndDateExtend(dto.getBookEndDate());
dto
.
setStartDateExtend
(
dto
.
getBookStartDateTime
());
dto
.
setEndDateExtend
(
dto
.
getBookEndDateTime
());
// notBookedDates = convertDatePeriod2List(dto.getStartDateExtend(),
// notBookedDates = convertDatePeriod2List(dto.getStartDateExtend(),
// dto.getEndDateExtend());
// dto.getEndDateExtend());
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/RentVehicleController.java
View file @
24303dbf
...
@@ -131,7 +131,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
...
@@ -131,7 +131,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
* @param dto
* @param dto
* @return
* @return
*/
*/
@ApiOperation
(
"可用车辆查询"
)
@ApiOperation
(
"
后台
可用车辆查询"
)
@RequestMapping
(
value
=
"/rent/back-stage/usable-vehicle"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/rent/back-stage/usable-vehicle"
,
method
=
RequestMethod
.
GET
)
@IgnoreUserToken
@IgnoreUserToken
public
ObjectRestResponse
<
PageDataVO
<
UsableVehicleModelVO
>>
rentBgUsableVehicle
(
UsableVeicleDTO
dto
)
throws
Exception
{
public
ObjectRestResponse
<
PageDataVO
<
UsableVehicleModelVO
>>
rentBgUsableVehicle
(
UsableVeicleDTO
dto
)
throws
Exception
{
...
...
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