| | |
| | | |
| | | Integer carId = driver.getCarId(); |
| | | map.put("car", ""); |
| | | map.put("id", carId); |
| | | if(carId!=null){ |
| | | Car car = carMapper.selectById(carId); |
| | | if(car.getCarLicensePlate()!=null){ |
| | |
| | | // driver.getCompanyId() != null && driver.getCompanyId() != 0 ? driver.getCompanyId() : 1)); |
| | | for (Map<String, Object> stringObjectMap : list) { |
| | | // 1使用中 2空闲中 |
| | | if(stringObjectMap.get("useDriverId")!=null && stringObjectMap.get("useDriverId").toString().equals(uid.toString())){ |
| | | map.put("useState", 1); |
| | | if(stringObjectMap.get("useDriverId")!=null){ |
| | | stringObjectMap.put("useState", 1); |
| | | }else { |
| | | map.put("useState", 0); |
| | | stringObjectMap.put("useState", 2); |
| | | } |
| | | } |
| | | map.put("list", list); |