wangning 7 years ago
commit 4ceef6abb1

@ -0,0 +1,24 @@
package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.management.clearing.core.CleanService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* Created by yishuqian on 06/06/2017.
*/
@Component
@ConditionalOnProperty(value = "app.run-tasks",havingValue = "true")
public class CleanNoticeTaskManager {
@Resource
private CleanService cleanService;
@Scheduled(cron = "0 0 15 * * ?")
public void sendCleanNotice(){
cleanService.getTodaySettlementLogs();
}
}
Loading…
Cancel
Save