Merge branch 'master' of https://git.royalpay.com.au/git/royalv2.manage
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…
Reference in new issue