zhongrj
2024-04-09 daa9d8eba1f2b36d7b094d9079948b081008059d
src/main/java/org/springblade/modules/article/controller/ArticleController.java
@@ -204,7 +204,18 @@
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "删除", notes = "传入ids")
   public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
      return R.status(articleService.removeByIds(Func.toLongList(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);
   }
   /**