Browse Source

员工停用BUG修复

anderx 2 years ago
parent
commit
6a51a0785f

+ 11 - 20
yccrc-kede/src/main/java/com/yccrc/web/controller/system/SysUserController.java

@@ -1,22 +1,5 @@
 package com.yccrc.web.controller.system;
 
-import java.util.List;
-import java.util.stream.Collectors;
-import javax.servlet.http.HttpServletResponse;
-import org.apache.commons.lang3.ArrayUtils;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.security.access.prepost.PreAuthorize;
-import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.DeleteMapping;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
-import org.springframework.web.multipart.MultipartFile;
-
 import com.yccrc.common.annotation.Log;
 import com.yccrc.common.constant.UserConstants;
 import com.yccrc.common.core.controller.BaseController;
@@ -32,13 +15,22 @@ import com.yccrc.kede.enums.UserTypeEnum;
 import com.yccrc.system.service.ISysPostService;
 import com.yccrc.system.service.ISysRoleService;
 import com.yccrc.system.service.ISysUserService;
-
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import org.apache.commons.lang3.ArrayUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+import java.util.stream.Collectors;
 
 /**
  * 用户信息
- * 
+ *
  * @author ruoyi
  */
 @Api(tags = "用户管理")
@@ -214,7 +206,6 @@ public class SysUserController extends BaseController
      * 状态修改
      */
     @ApiOperation(value = "状态修改")
-    @PreAuthorize("@ss.hasPermi('system:user:edit')")
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
     @PutMapping("/changeStatus")
     public AjaxResult changeStatus(@RequestBody SysUser user)