|
@@ -84,13 +84,13 @@ public class InfoTypeController extends BaseController {
|
|
|
@RequiresPermissions("info:infoType:edit")
|
|
|
@RequestMapping(value = "save")
|
|
|
public String save(InfoType infoType, Model model, RedirectAttributes redirectAttributes) {
|
|
|
- if (!beanValidator(model, infoType)) {
|
|
|
- return form(infoType, model);
|
|
|
- }
|
|
|
+// if (!beanValidator(model, infoType)) {
|
|
|
+// return form(infoType, model);
|
|
|
+// }
|
|
|
infoTypeService.save(infoType);
|
|
|
addMessage(redirectAttributes, "保存信息分类成功");
|
|
|
// 更新全部文章索引
|
|
|
- coreServiceUitls.updateAllArticleIndex();
|
|
|
+// coreServiceUitls.updateAllArticleIndex();
|
|
|
return "redirect:" + Global.getAdminPath() + "/info/infoType/?repage&type=" + infoType.getType() + "&parentId=" + infoType.getParentId();
|
|
|
}
|
|
|
|
|
@@ -121,7 +121,7 @@ public class InfoTypeController extends BaseController {
|
|
|
infoTypeService.delete(infoType);
|
|
|
addMessage(redirectAttributes, "删除信息分类成功");
|
|
|
// 更新全部文章索引
|
|
|
- coreServiceUitls.updateAllArticleIndex();
|
|
|
+// coreServiceUitls.updateAllArticleIndex();
|
|
|
}
|
|
|
return "redirect:" + Global.getAdminPath() + "/info/infoType/?repage&type=" + infoType.getType() + "&parentId=" + infoType.getParentId();
|
|
|
}
|