| | |
| | | |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.service.business.WxBillService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | @Autowired |
| | | private WxBillService wxBillService; |
| | | |
| | | /** |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(cron = "0 0 02 * * ? ") |
| | | @Scheduled(cron = "0 0 11 * * ? ") |
| | | public void syncStudent() throws Exception { |
| | | wxBillService.getWxBill(); |
| | | |
| | | } |
| | | /** |
| | | * @throws Exception |
| | | */ |
| | | @Scheduled(fixedDelay = 1000*60) |
| | | public void getYesterdayBill() throws Exception { |
| | | wxBillService.getWxBill(); |
| | | |
| | | } |
| | | } |