Browse Source

正式专利提醒修改时间触发接口

anderx 6 years ago
parent
commit
6bfb409d36
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/main/java/com/goafanti/common/task/PatentTask.java

+ 4 - 4
src/main/java/com/goafanti/common/task/PatentTask.java

@@ -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();