|
@@ -53,7 +53,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 获取用户列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(SysUser user) {
|
|
|
startPage();
|
|
@@ -62,7 +62,7 @@ public class SysUserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:export')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:export')")
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, SysUser user) {
|
|
|
List<SysUser> list = userService.selectUserList(user);
|
|
@@ -71,7 +71,7 @@ public class SysUserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Log(title = "用户管理", businessType = BusinessType.IMPORT)
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:import')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:import')")
|
|
|
@PostMapping("/importData")
|
|
|
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
|
|
|
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
|
|
@@ -90,7 +90,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 根据用户编号获取详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
|
@GetMapping(value = {"/", "/{userId}"})
|
|
|
public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId) {
|
|
|
userService.checkUserDataScope(userId);
|
|
@@ -110,7 +110,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 新增用户
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:add')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@Validated @RequestBody SysUser user) {
|
|
@@ -129,7 +129,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 修改用户
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@Validated @RequestBody SysUser user) {
|
|
@@ -149,7 +149,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 删除用户
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:remove')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{userIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] userIds) {
|
|
@@ -162,7 +162,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 重置密码
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/resetPwd")
|
|
|
public AjaxResult resetPwd(@RequestBody SysUser user) {
|
|
@@ -176,7 +176,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 状态修改
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/changeStatus")
|
|
|
public AjaxResult changeStatus(@RequestBody SysUser user) {
|
|
@@ -189,7 +189,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 根据用户编号获取授权角色
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:query')")
|
|
|
@GetMapping("/authRole/{userId}")
|
|
|
public AjaxResult authRole(@PathVariable("userId") Long userId) {
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
@@ -203,7 +203,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 用户授权角色
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:edit')")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.GRANT)
|
|
|
@PutMapping("/authRole")
|
|
|
public AjaxResult insertAuthRole(Long userId, Long[] roleIds) {
|
|
@@ -215,7 +215,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 获取部门树列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('system:user:list')")
|
|
|
@GetMapping("/deptTree")
|
|
|
public AjaxResult deptTree(SysDept dept) {
|
|
|
return success(deptService.selectDeptTreeList(dept));
|