| | |
| | | Integer count = orderService.getValidOrderCount(driver.getId(),new BigDecimal(14),new SimpleDateFormat("yyyy-MM").format(new Date())); |
| | | if(count < 30){ |
| | | driver.setIsException(2); |
| | | }else { |
| | | driver.setIsException(1); |
| | | } |
| | | TDriverWork tDriverWork = tDriverWorkService.selectOne(new EntityWrapper<TDriverWork>() |
| | | .eq("driverId", driver.getId()) |
| | |
| | | } |
| | | } |
| | | }else { |
| | | if(Objects.nonNull(driver.getApprovalTime())){ |
| | | // 没有上班记录,计算审核时间 |
| | | Period period = Period.between(DateUtil.dateToLocalDate(driver.getApprovalTime()), LocalDate.now()); |
| | | int day = Math.abs(period.getDays()); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | driverService.updateBatchById(driverList); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |