|
@@ -33,8 +33,9 @@ public class FeiYongJieShouChongSuan {
|
|
|
this.patientService = patientService;
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+ @Scheduled(cron = "0 0 1 * * ?")
|
|
|
public void jieShouFeiYong() {
|
|
|
+ // 每天凌晨 1 点 执行
|
|
|
if (feiYongJieShou) {
|
|
|
List<Patient> xuYaoJieShouDeFeiYong = dao.xuYaoJieShouFeiYong();
|
|
|
for (Patient item : xuYaoJieShouDeFeiYong) {
|