From 3fac36b394206df5f8002fa32bd360021fec743f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 09 二月 2023 19:13:13 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/controller/all/FmeItController.java | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/lf/server/controller/all/FmeItController.java b/src/main/java/com/lf/server/controller/all/FmeItController.java index f5e2e84..47f7edb 100644 --- a/src/main/java/com/lf/server/controller/all/FmeItController.java +++ b/src/main/java/com/lf/server/controller/all/FmeItController.java @@ -2,9 +2,11 @@ import com.lf.server.annotation.SysLog; import com.lf.server.entity.all.ResponseMsg; +import com.lf.server.entity.data.DirEntity; import com.lf.server.entity.sys.RoleEntity; import com.lf.server.entity.sys.UserEntity; import com.lf.server.helper.StringHelper; +import com.lf.server.service.data.DirService; import com.lf.server.service.sys.RoleService; import com.lf.server.service.sys.TokenService; import com.lf.server.service.sys.UserService; @@ -36,6 +38,9 @@ @Autowired TokenService tokenService; + + @Autowired + DirService dirService; @SysLog() @ApiOperation(value = "鏌ヨ鏄�/鍚︿负绠$悊鍛�") @@ -104,11 +109,11 @@ if (pageSize < 1 || pageIndex < 1) { return fail("姣忛〉椤垫暟鎴栧垎椤垫暟灏忎簬1", null); } - int count = userService.selectCount(uname); + int count = userService.selectCount(uname, null); if (count == 0) { return success(0, null); } - List<UserEntity> rs = userService.selectByPage(uname, pageSize, pageSize * (pageIndex - 1)); + List<UserEntity> rs = userService.selectByPage(uname, null, pageSize, pageSize * (pageIndex - 1)); return success(count, rs); } catch (Exception ex) { @@ -240,4 +245,17 @@ return fail(ex.getMessage(), null); } } + + @SysLog() + @ApiOperation(value = "鏌ヨ鏍圭洰褰�") + @GetMapping(value = "/selectDirRoot") + public ResponseMsg<List<DirEntity>> selectDirRoot() { + try { + List<DirEntity> list = dirService.selectDirRoot(); + + return success(list); + } catch (Exception ex) { + return fail(ex.getMessage(), null); + } + } } -- Gitblit v1.9.3