Commit 87d731ec authored by 周健威's avatar 周健威

修改bug

parent 851636f8
......@@ -283,6 +283,7 @@ public class VehicleController extends BaseController<VehicleBiz> {
public ObjectRestResponse<PageDataVO<UsableVehicleModelVO>> rentUsableVehicle(UsableVeicleDTO dto) throws Exception {
//根据时间 获得 可用车辆
//结合车型
if(StringUtils.isNotBlank(dto.getCatasStr())) {
List<Integer> catasIds = Pattern.compile(",").splitAsStream(dto.getCatasStr()).map((s)-> Integer.parseInt(s)).collect(Collectors.toList());
List<VehiclePlatCata> catas = vehiclePlatCataBiz.selectByExample(new Example.Builder(VehiclePlatCata.class)
.where(WeekendSqls.<VehiclePlatCata>custom().andIn(VehiclePlatCata::getId, catasIds)).build());
......@@ -296,7 +297,6 @@ public class VehicleController extends BaseController<VehicleBiz> {
vpcMap.put(vpc.getParentId(), vpcs);
}
if(StringUtils.isNotBlank(dto.getCatasStr())) {
dto.setCatas(vpcMap);
}
return new ObjectRestResponse<>().data(vehicleBiz.searchUsableModel(dto)).rel(true);
......
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