|
|
@@ -35,8 +35,8 @@ import com.goafanti.patent.service.PatentNewService;
|
|
|
|
|
|
|
|
|
|
|
|
-//@Component
|
|
|
-@Controller
|
|
|
+@Component
|
|
|
+//@Controller
|
|
|
public class PatentTask {
|
|
|
@Resource
|
|
|
private PatentNewService patentNewService;
|
|
|
@@ -58,8 +58,8 @@ public class PatentTask {
|
|
|
|
|
|
|
|
|
|
|
|
-// @Scheduled(cron = "0 0 0 * * ?")
|
|
|
- @RequestMapping(value = "/open/patentRemind", method = RequestMethod.GET)
|
|
|
+ @Scheduled(cron = "0 0 0 * * ?")
|
|
|
+// @RequestMapping(value = "/open/patentRemind", method = RequestMethod.GET)
|
|
|
public void patentRemind() {
|
|
|
LoggerUtils.debug(getClass(), "开始检查专利提醒");
|
|
|
List<PatentNew> l=patentNewService.AllselectPatentNew();
|