Commit 2569edab authored by alex yao's avatar alex yao

修改知识库状态变更查询定时任务

parent 3a461a67
...@@ -35,7 +35,7 @@ public class KnowledgeInfoScheduler { ...@@ -35,7 +35,7 @@ public class KnowledgeInfoScheduler {
@Resource @Resource
private DemandKnowledgeService demandKnowledgeService; private DemandKnowledgeService demandKnowledgeService;
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "*/24 * * * * ?")
public void knowledgeInfoStatusUpdateScheduler() throws Exception { public void knowledgeInfoStatusUpdateScheduler() throws Exception {
KnowledgeInfosQueryCondition condition = new KnowledgeInfosQueryCondition(); KnowledgeInfosQueryCondition condition = new KnowledgeInfosQueryCondition();
condition.setTrainStatus(KnowledgeConstant.TrainStatus.TRAINING); condition.setTrainStatus(KnowledgeConstant.TrainStatus.TRAINING);
...@@ -49,7 +49,7 @@ public class KnowledgeInfoScheduler { ...@@ -49,7 +49,7 @@ public class KnowledgeInfoScheduler {
} }
@Scheduled(cron = "0 0/1 * * * ?") @Scheduled(cron = "*/11 * * * * ?")
public void knowledgeDocumentStatusUpdateScheduler() throws Exception { public void knowledgeDocumentStatusUpdateScheduler() throws Exception {
BizKnowledgeDocumentEntity knowledgeDocumentEntity = new BizKnowledgeDocumentEntity(); BizKnowledgeDocumentEntity knowledgeDocumentEntity = new BizKnowledgeDocumentEntity();
knowledgeDocumentEntity.setTrainStatus(KnowledgeConstant.TrainStatus.TRAINING); knowledgeDocumentEntity.setTrainStatus(KnowledgeConstant.TrainStatus.TRAINING);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment