eason.qian 7 years ago
parent d3f65edccf
commit 2596573b83

@ -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