//package com.zjty.tynotes.weekly.task;
//
//import com.zjty.tynotes.pas.entity.User;
//import com.zjty.tynotes.pas.service.IUserService;
//import com.zjty.tynotes.weekly.subject.service.WeeklyService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
///**
// * @author LJJ cnljj1995@gmail.com
// * on 2019-07-05
// */
//@Slf4j
//@Service
//public class WeeklyInit {
//    @Autowired
//    WeeklyService weeklyService;
//
//    @Autowired
//    IUserService iUserService;
//
////    @Scheduled(cron = "0 5 0 ? * MON")
//    public void task(){
//        List<User> list=iUserService.findAll();
//        for (User user:list){
//              weeklyService.createWeekly(user.getId());
//        }
//        log.info("每周的个人周报生成完成");
//    }
//}
