| | |
| | | //推送登录日志每周 |
| | | @Scheduled(cron = "0 0 1 ? * 1") |
| | | public void logging(){ |
| | | log.info("create---进入推送登录日志......"); |
| | | if (!loginPush){ |
| | | return; |
| | | } |
| | | log.info("loginPush---开始推送登录日志......"); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:dd"); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | //获取登录日志 |
| | |
| | | //推送电每月 |
| | | @Scheduled(cron = "0 0 1 1 * ?") |
| | | public void electricity(){ |
| | | log.info("create---进入推送电每月......"); |
| | | if (!push){ |
| | | return; |
| | | } |
| | | log.info("electricity---开始推送电每月......"); |
| | | DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:dd"); |
| | | //获取登录日志 |
| | | List<ElectricityDto> electricityDtos = new ArrayList<>(); |