From 47712cc6cd4d52fcd1dde44e2a400ccbb9c6ae7a Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 12 Apr 2024 15:20:49 +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