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

Merge branch 'master-zjw' into dev

parents 066c105c 65763ce8
......@@ -74,7 +74,8 @@ public class OrderRentVehicleController extends CommonBaseController {
bo.setAppUserDTO(userFeign.userDetailById(dto.getAppUserId()).getData());
bo.setCrtUser("-1"+ BaseContextHandler.getUserID());
bo.setUseType(null);
//设置-1表示查询所有的车
bo.setUseType(-1);
orderRentVehicleService.createOrder(bo);
return ObjectRestResponse.succ(bo.getOrder());
}
......
......@@ -97,6 +97,15 @@ public class RentVehicleBookDTO extends PageParam {
@ApiModelProperty(hidden = true)
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) {
this.bookStartDate = bookStartDate;
//首次设置
......
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