管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-18 b07cdf03ec1754aefa231b3199171e0b11bc99f8
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,30 @@
            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);
        }
    }
    @SysLog()
    @ApiOperation(value = "查询项目")
    @GetMapping(value = "/selectProject")
    public ResponseMsg<List<DirEntity>> selectProject() {
        try {
            List<DirEntity> list = dirService.selectProject();
            return success(list);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
        }
    }
}