修改重新生成索引接口
This commit is contained in:
parent
560fb3d992
commit
47ab6b1229
@ -100,4 +100,14 @@ public class SysNutritionQuestionController extends BaseController
|
|||||||
{
|
{
|
||||||
return toAjax(sysNutritionQuestionService.deleteSysNutritionQuestionByIds(ids));
|
return toAjax(sysNutritionQuestionService.deleteSysNutritionQuestionByIds(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 重新生成知识问答索引
|
||||||
|
*/
|
||||||
|
@Log(title = "重新生成知识问答索引", businessType = BusinessType.UPDATE)
|
||||||
|
@GetMapping("/regenerateNutritionQuestionIndex")
|
||||||
|
public AjaxResult regenerateNutritionQuestionIndex()
|
||||||
|
{
|
||||||
|
return toAjax(sysNutritionQuestionService.regenerateNutritionQuestionIndex() ? 1 : 0);
|
||||||
|
}
|
||||||
}
|
}
|
@ -188,6 +188,7 @@ public class SysNutritionQuestionServiceImpl implements ISysNutritionQuestionSer
|
|||||||
luceneIndexUtils.addIndexs(nutritionQuestionToDocument(list));
|
luceneIndexUtils.addIndexs(nutritionQuestionToDocument(list));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -104,7 +104,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
"/wx/**",
|
"/wx/**",
|
||||||
"/wap/**",
|
"/wap/**",
|
||||||
"/investigate/**",
|
"/investigate/**",
|
||||||
"/common/customerUploadFile"
|
"/common/customerUploadFile",
|
||||||
|
"/custom/nutritionQuestion/regenerateNutritionQuestionIndex"
|
||||||
).anonymous()
|
).anonymous()
|
||||||
.antMatchers(
|
.antMatchers(
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user