| | |
| | | }) |
| | | public ResultUtil addCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicenseNumber, String drivingLicensePhoto, |
| | | String drivingLicenseEndTime, String carPhoto, String insurancePhoto, String commercialInsuranceTime, |
| | | String peopleAndCarsPhone, HttpServletRequest request,Integer id){ |
| | | String peopleAndCarsPhone, HttpServletRequest request,Integer id, Integer language){ |
| | | try { |
| | | Integer uid = driverService.getUserIdFormRedis(request); |
| | | if(null == uid){ |
| | | return ResultUtil.tokenErr(); |
| | | } |
| | | return carService.addCar(modelId, color, licensePlate, time, drivingLicenseNumber, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto |
| | | , commercialInsuranceTime, uid,id, peopleAndCarsPhone); |
| | | , commercialInsuranceTime, uid,id, peopleAndCarsPhone, language); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return ResultUtil.runErr(); |