jiangping
2023-10-07 7ed6c5a40c669a1b4dffcb3dca25bffebce16dcf
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();
    }
}