Commit 1b0dc853 authored by 周健威's avatar 周健威

修改查询车辆bug

parent 6723a534
......@@ -116,6 +116,12 @@ public class RentVehicleBookDTO extends PageParam {
@ApiModelProperty(hidden = true)
Integer useType = 1;
/**
* 是否不检查时间字节上的冲突
*/
@ApiModelProperty(hidden = true)
Boolean yearNo4Where;
/**
* 是否根据预订记录(相交叉)查询
* 原(大于预约结束时间,小于预约开始时间的预约记录)
......
......@@ -162,6 +162,7 @@ public class RentVehicleController extends BaseController<VehicleBiz> implements
rbd.setRecordIntersection(Boolean.TRUE);
rbd.setBookStartDateTime(dto.getStartDateTime());
rbd.setBookEndDateTime(dto.getEndDateTime());
rbd.setYearNo4Where(Boolean.TRUE);
//查询可车辆信息
PageDataVO<UsableVeicleVO> pageDataVO = vehicleBiz.searchUsableVehicle(rbd);
if(CollUtil.isNotEmpty(pageDataVO.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