Authored by 胡古飞

revert tbl job

@@ -88,13 +88,13 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware { @@ -88,13 +88,13 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware {
88 logger.info("indexRebuildJob rebuildSuggestIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin)); 88 logger.info("indexRebuildJob rebuildSuggestIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
89 } 89 }
90 90
91 -// @Scheduled(cron = "0 50 * * * ?")  
92 -// public void rebuildTblProductIndex() {  
93 -// long begin = System.currentTimeMillis();  
94 -// logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);  
95 -// this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);  
96 -// logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));  
97 -// } 91 + @Scheduled(cron = "0 50 * * * ?")
  92 + public void rebuildTblProductIndex() {
  93 + long begin = System.currentTimeMillis();
  94 + logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);
  95 + this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);
  96 + logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
  97 + }
98 98
99 private void rebuildIndexWithlog(String indexName) { 99 private void rebuildIndexWithlog(String indexName) {
100 try { 100 try {
@@ -190,7 +190,7 @@ public class IndexController implements ApplicationEventPublisherAware { @@ -190,7 +190,7 @@ public class IndexController implements ApplicationEventPublisherAware {
190 if (rebuildFlagService.isRebuilding()) { 190 if (rebuildFlagService.isRebuilding()) {
191 return getResultMap(400, "current has index rebuilding,please wait......"); 191 return getResultMap(400, "current has index rebuilding,please wait......");
192 } 192 }
193 - //indexRebuildJob.rebuildTblProductIndex(); 193 + indexRebuildJob.rebuildTblProductIndex();
194 indexRebuildJob.execute(); 194 indexRebuildJob.execute();
195 suggestionDiscoveryJob.execute(); 195 suggestionDiscoveryJob.execute();
196 suggestionCounterJob.execute(); 196 suggestionCounterJob.execute();