jiangping
2023-10-07 9a94c295952d513c1703aa8d3fcf54d17da168e5
server/platform/src/main/java/com/doumee/task/ScheduleTool.java
@@ -2,6 +2,7 @@
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;
@@ -21,13 +22,23 @@
    @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();
    }
}