|
|
@@ -32,12 +32,11 @@ import com.goafanti.common.utils.LoggerUtils;
|
|
|
import com.goafanti.common.utils.SendEmailUtil;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
import com.goafanti.patent.service.PatentNewService;
|
|
|
-import com.goafanti.report.bo.marketingESBo;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-//@Component
|
|
|
+@Component
|
|
|
@RestController
|
|
|
public class PatentTask {
|
|
|
@Resource
|
|
|
@@ -60,7 +59,7 @@ public class PatentTask {
|
|
|
|
|
|
|
|
|
|
|
|
-// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+ @Scheduled(cron = "0 0 0 * * ?")
|
|
|
@RequestMapping(value = "/open/patentRemind", method = RequestMethod.GET)
|
|
|
public void patentRemind() {
|
|
|
LoggerUtils.debug(getClass(), "====================开始检查专利提醒==================");
|
|
|
@@ -124,7 +123,6 @@ public class PatentTask {
|
|
|
patentNewService.updatePatenNew(p);
|
|
|
}
|
|
|
}
|
|
|
- throw new BusinessException("测试");
|
|
|
} catch (Exception e) {
|
|
|
LoggerUtils.debug(getClass(), "=====================专利提醒失败======================");
|
|
|
EmailBo emailBo = new EmailBo( "专利提醒失败", AFTConstants.ADMIN_EMAIL, "超管", "平台", "系统", "专利提醒失败");
|