|
@@ -56,7 +56,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 获取用户列表
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:list")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:list")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(SysUser user) {
|
|
|
startPage();
|
|
@@ -65,7 +65,7 @@ public class SysUserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Log(title = "用户管理", businessType = BusinessType.EXPORT)
|
|
|
- @PreAuthorize(hasPermi = "system:user:export")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:export")
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, SysUser user) throws IOException {
|
|
|
List<SysUser> list = userService.selectUserList(user);
|
|
@@ -74,7 +74,7 @@ public class SysUserController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@Log(title = "用户管理", businessType = BusinessType.IMPORT)
|
|
|
- @PreAuthorize(hasPermi = "system:user:import")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:import")
|
|
|
@PostMapping("/importData")
|
|
|
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
|
|
|
ExcelUtil<SysUser> util = new ExcelUtil<SysUser>(SysUser.class);
|
|
@@ -162,7 +162,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 根据用户编号获取详细信息
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:query")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:query")
|
|
|
@GetMapping(value = {"/", "/{id}"})
|
|
|
public AjaxResult getInfo(@PathVariable(value = "id", required = false) Long id) {
|
|
|
AjaxResult ajax = AjaxResult.success();
|
|
@@ -180,7 +180,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 新增用户
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:add")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:add")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@Validated @RequestBody SysUser user) {
|
|
@@ -201,7 +201,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 修改用户
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@Validated @RequestBody SysUser user) {
|
|
@@ -220,7 +220,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 删除用户
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:remove")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:remove")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
@@ -230,7 +230,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 重置密码
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/resetPwd")
|
|
|
public AjaxResult resetPwd(@RequestBody SysUser user) {
|
|
@@ -243,7 +243,7 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 状态修改
|
|
|
*/
|
|
|
- @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
+// @PreAuthorize(hasPermi = "system:user:edit")
|
|
|
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping("/changeStatus")
|
|
|
public AjaxResult changeStatus(@RequestBody SysUser user) {
|