|  |  | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.*; | 
 |  |  | import com.doumee.dao.business.*; | 
 |  |  | import com.doumee.dao.business.dao.SmsConfigMapper; | 
 |  |  | import com.doumee.dao.business.dao.SmsEmailMapper; | 
 |  |  | import com.doumee.dao.business.join.ApproveJoinMapper; | 
 |  |  | import com.doumee.dao.business.join.CarUseBookJoinMapper; | 
 |  |  | 
 |  |  |             throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"当前登录用户无法进行该操作!"); | 
 |  |  |         } | 
 |  |  |         if(carUseBook.getEndTime().getTime()<=System.currentTimeMillis()){ | 
 |  |  |             throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"选择日期异常[结束时间小于当前时间],请刷新重试"); | 
 |  |  | //            throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"选择日期异常[结束时间小于当前时间],请刷新重试"); | 
 |  |  |         } | 
 |  |  |         if(!(DateUtil.getDateFromString(carUseBook.getPlanUseDate()+":00").getTime()>=carUseBook.getStartTime().getTime() | 
 |  |  |                 && DateUtil.getDateFromString(carUseBook.getPlanUseDate() +":00").getTime()<= carUseBook.getEndTime().getTime()) | 
 |  |  | 
 |  |  |         CarDriver carDriver = carDriverMapper.selectOne(new QueryWrapper<CarDriver>().lambda() | 
 |  |  |                 .eq(CarDriver::getCarId,cars.getId()) | 
 |  |  |                 .eq(CarDriver::getIsdeleted,Constants.ZERO) | 
 |  |  |                 .eq(CarDriver::getStatus,Constants.ONE) | 
 |  |  | //                .eq(CarDriver::getStatus,Constants.ZERO) | 
 |  |  |                 .last( " limit 1 ") | 
 |  |  |         ); | 
 |  |  |         if(Objects.nonNull(carDriver)&&Objects.nonNull(carDriver.getMemberId())){ | 
 |  |  | 
 |  |  |             } | 
 |  |  |             //判断时间是否大于当前 | 
 |  |  |             if(Constants.equalsInteger(dateIntervalVO.getIsUse(),Constants.ZERO)  && DateUtil.getDateFromString(dateIntervalVO.getEndTime()).getTime()<=System.currentTimeMillis()){ | 
 |  |  |                 dateIntervalVO.setIsUse(Constants.ONE); | 
 |  |  | //                dateIntervalVO.setIsUse(Constants.ONE); | 
 |  |  |                 continue; | 
 |  |  |             } | 
 |  |  |         } |