From a50116fdba9f2ed5ff92380db1338243e76ddd5f Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Fri, 12 Apr 2024 09:50:35 +0800
Subject: [PATCH] 系统管理可以查询所有的机构
---
src/main/java/org/springblade/modules/article/controller/ArticleController.java | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/src/main/java/org/springblade/modules/article/controller/ArticleController.java b/src/main/java/org/springblade/modules/article/controller/ArticleController.java
index 4a3d43c..01a1409 100644
--- a/src/main/java/org/springblade/modules/article/controller/ArticleController.java
+++ b/src/main/java/org/springblade/modules/article/controller/ArticleController.java
@@ -178,19 +178,6 @@
}
article.setUpdateTime(new Date());
boolean saveOrUpdate = articleService.saveOrUpdate(article);
- if (saveOrUpdate){
- EsParam esParam = new EsParam();
- esParam.setIndexName("test");
- esParam.setTableName("jczz_article");
- if (flag) {
- // 更新到es库
- elasticsearchDocumentService.addArticle(esParam, article);
- }else {
- esParam.setTableId(article.getId().toString());
- // 更新
- elasticsearchDocumentService.update(esParam,article);
- }
- }
return R.status(saveOrUpdate);
}
@@ -206,15 +193,6 @@
public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
List<Long> longs = Func.toLongList(ids);
boolean removeByIds = articleService.removeByIds(longs);
- if (removeByIds){
- for (Long id : longs) {
- EsParam esParam = new EsParam();
- esParam.setIndexName("test");
- esParam.setTableName("jczz_article");
- esParam.setTableId(id.toString());
- elasticsearchDocumentService.removeByQuery(esParam);
- }
- }
return R.status(removeByIds);
}
--
Gitblit v1.9.3