|
@@ -144,8 +144,13 @@ public class ArticleController extends JeecgController<Article, IArticleService>
|
|
@RequiresPermissions("kms:kms_knowledge_article:deleteAudit")
|
|
@RequiresPermissions("kms:kms_knowledge_article:deleteAudit")
|
|
@GetMapping(value = "/auditBatch")
|
|
@GetMapping(value = "/auditBatch")
|
|
public Result<String> auditBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
public Result<String> auditBatch(@RequestParam(name = "ids", required = true) String ids) {
|
|
- this.articleService.auditBatchByIds(Arrays.asList(ids.split(",")));
|
|
|
|
- return Result.OK("批量审核成功!");
|
|
|
|
|
|
+ List<String> idList = Arrays.asList(ids.split(","));
|
|
|
|
+ this.articleService.auditBatchByIds(idList);
|
|
|
|
+ if (idList.size() == 1) {
|
|
|
|
+ return Result.OK("审核成功!");
|
|
|
|
+ }else {
|
|
|
|
+ return Result.OK("批量审核成功!");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|