|
@@ -169,7 +169,19 @@ public class ArticleController extends JeecgController<Article, IArticleService>
|
|
|
return Result.OK("批量审核成功!");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ @AutoLog(value = "知识管理-文章-批量恢复")
|
|
|
+ @ApiOperation(value = "知识管理-文章-批量恢复", notes = "知识管理-文章-批量恢复")
|
|
|
+ @RequiresPermissions("kms:kms_knowledge_article:deleteAudit")
|
|
|
+ @GetMapping(value = "/restoreBatch")
|
|
|
+ public Result<String> restoreBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
|
+ List<String> idList = Arrays.asList(ids.split(","));
|
|
|
+ this.articleService.restoreBatchByIds(idList);
|
|
|
+ if (idList.size() == 1) {
|
|
|
+ return Result.OK("审核成功!");
|
|
|
+ } else {
|
|
|
+ return Result.OK("批量审核成功!");
|
|
|
+ }
|
|
|
+ }
|
|
|
/**
|
|
|
* 通过id查询
|
|
|
*
|