From c5377cb7f3f183ede44e27f6c381c2f195cf05e5 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 11 May 2022 11:28:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=A6=86=E7=9B=96=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/resource/controller/ResourceController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index ddfa38d3..495b5bb2 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -50,7 +50,9 @@ public class ResourceController { @ApiImplicitParam(name = "creator", value = "创建者用户id", paramType = "query", dataType = "String") }) public Result> page(@ApiIgnore @RequestParam Map params) { - params.put("del_flag", 0); + if (!params.containsKey("del_flag")) { + params.put("del_flag", 0); + } PageData page = resourceService.page(params); page.getList().forEach(item -> { item.setInfoList(resourceService.selectAttrsByResourceId(item.getId()));