add timer task

master
kira 6 years ago
parent de7b91a0eb
commit 8d3c0d5987

@ -0,0 +1,23 @@
package au.com.royalpay.payment.manage.task;
import au.com.royalpay.payment.manage.openim.core.CustomerServiceService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
/**
* Created by wangning on 2018/1/2.
*/
@Component
@ConditionalOnProperty(value = "app.run-tasks", havingValue = "true")
public class SendUnreadMsgWechatTask {
@Resource
private CustomerServiceService customerServiceService;
// @Scheduled(cron = "0 0/10 * * * ?")
public void ofeiOrderCheck() {
customerServiceService.sendUnreadWxMsg();
}
}
Loading…
Cancel
Save