|
@@ -1,7 +1,10 @@
|
|
package com.fdkankan.fusion.controller;
|
|
package com.fdkankan.fusion.controller;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.fdkankan.fusion.common.ResultData;
|
|
import com.fdkankan.fusion.common.ResultData;
|
|
|
|
+import com.fdkankan.fusion.common.enums.RoleKeyEnum;
|
|
|
|
+import com.fdkankan.fusion.entity.TmRole;
|
|
import com.fdkankan.fusion.service.ITmRoleService;
|
|
import com.fdkankan.fusion.service.ITmRoleService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -26,7 +29,9 @@ public class TmRoleController {
|
|
|
|
|
|
@GetMapping("/getAllRoleList")
|
|
@GetMapping("/getAllRoleList")
|
|
public ResultData getAllRoleList(){
|
|
public ResultData getAllRoleList(){
|
|
- return ResultData.ok(roleService.list());
|
|
|
|
|
|
+ LambdaQueryWrapper<TmRole> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ wrapper.ne(TmRole::getRoleKey, RoleKeyEnum.ADMIN_SUPER.getKey());
|
|
|
|
+ return ResultData.ok(roleService.list(wrapper));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|