package com.yeshi.fanli.job;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
import com.yeshi.fanli.log.LogHelper;
|
import com.yeshi.fanli.service.inter.tlj.UserTaoLiJinReportService;
|
import com.yeshi.fanli.util.Constant;
|
|
|
@Component
|
public class TaoLiJinJob {
|
|
|
@Resource
|
private UserTaoLiJinReportService userTaoLiJinReportService;
|
|
|
/**
|
* 更新报告
|
*/
|
@Scheduled(cron = "0 0 0 * * ?")
|
public void insetDynamicInfo() {
|
|
if (!Constant.IS_TASK) {
|
return;
|
}
|
|
try {
|
userTaoLiJinReportService.needUpdateReport();
|
} catch (Exception e) {
|
try {
|
LogHelper.errorDetailInfo(e);
|
} catch (Exception e1) {
|
e1.printStackTrace();
|
}
|
}
|
}
|
|
|
|
}
|