| | |
| | | @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); |
| | | } |
| | | |
| | | /** |