From 4d730af0447c686133130d0116a0fa3dd82c2dca Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:41:03 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' into wcd
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
index accb596..24b1566 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/UserController.java
@@ -38,6 +38,7 @@
import me.zhengjie.utils.*;
import me.zhengjie.modules.system.service.UserService;
import me.zhengjie.utils.enums.CodeEnum;
+import org.springframework.cache.annotation.CacheEvict;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
@@ -152,7 +153,7 @@
return new ResponseEntity<>(PageUtil.toPage(null,0),HttpStatus.OK);
}
- @Log("新增用户")
+// @Log("新增用户")
@ApiOperation("新增用户")
@PostMapping
@PreAuthorize("@el.check('user:add')")
@@ -214,6 +215,14 @@
throw new BadRequestException("新密码不能与旧密码相同");
}
userService.updatePass(user.getUsername(),passwordEncoder.encode(newPass));
+ return new ResponseEntity<>(HttpStatus.OK);
+ }
+
+ @ApiOperation("重置密码")
+ @PostMapping(value = "/resetPass")
+ public ResponseEntity<Object> resetUserPass(@RequestBody User passVo) throws Exception {
+ UserDto user = userService.findByName(passVo.getUsername());
+ userService.updatePass(user.getUsername(),passwordEncoder.encode("123456"));
return new ResponseEntity<>(HttpStatus.OK);
}
@@ -296,8 +305,8 @@
}
@GetMapping("/getPerformanceDetail")
- public ResponseEntity<Object> getPerformanceDetail(Long nextMonth) {
- return new ResponseEntity<>(userService.getPerformanceDetail(nextMonth),HttpStatus.OK);
+ public ResponseEntity<Object> getPerformanceDetail(Long nextMonth) throws ParseException {
+ return new ResponseEntity<>(HttpStatus.OK); // userService.getPerformanceDetail(nextMonth),
}
--
Gitblit v1.9.3