Commit d7abb402 authored by 周健威's avatar 周健威

修改代码

parent 65763ce8
...@@ -97,15 +97,6 @@ public class RentVehicleBookDTO extends PageParam { ...@@ -97,15 +97,6 @@ public class RentVehicleBookDTO extends PageParam {
@ApiModelProperty(hidden = true) @ApiModelProperty(hidden = true)
Integer useType = 1; Integer useType = 1;
//设置-1表示查询所有的车 由于null json序列化不会赋值过来
public void setUseType(Integer useType) {
if(-1 == useType) {
this.useType = null;
}else {
this.useType = useType;
}
}
public void setBookStartDate(String bookStartDate) { public void setBookStartDate(String bookStartDate) {
this.bookStartDate = bookStartDate; this.bookStartDate = bookStartDate;
//首次设置 //首次设置
......
...@@ -1249,6 +1249,11 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR ...@@ -1249,6 +1249,11 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
} }
public PageDataVO<Vehicle> searchUsableVehicle(RentVehicleBookDTO dto) { public PageDataVO<Vehicle> searchUsableVehicle(RentVehicleBookDTO dto) {
//设置-1表示查询所有的车 由于null json序列化不会赋值过来
if(-1 == dto.getUseType()) {
dto.setUseType(null);
}
Map<String, Object> params = BeanUtil.beanToMap(dto); Map<String, Object> params = BeanUtil.beanToMap(dto);
List<String> notBookedDates = Lists.newArrayList(); List<String> notBookedDates = Lists.newArrayList();
if (StringUtils.isNotBlank(dto.getBookEndDate()) && if (StringUtils.isNotBlank(dto.getBookEndDate()) &&
......
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