| | |
| | | // commissionResp.setAccumulatedCommission(BigDecimal.ZERO); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public void getDataStatistics(Integer agentId, Model model) { |
| | | // 司机总数 |
| | | Integer driverTotal = tDriverMapper.selectCount(new EntityWrapper<TDriver>() |
| | | .eq("agentId", agentId)); |
| | | // 司机最近一月数量 |
| | | LocalDate now = LocalDate.now(); |
| | | LocalDate localDate = now.plusMonths(1); |
| | | Integer driverMonthTotal = tDriverMapper.selectCount(new EntityWrapper<TDriver>() |
| | | .eq("agentId", agentId) |
| | | .between("createTime", localDate, now)); |
| | | model.addAttribute("driverTotal",driverTotal); |
| | | model.addAttribute("driverMonthTotal",driverMonthTotal); |
| | | } |
| | | } |