From 7e92584190223b2967e6a5473d9c23e0e05b2437 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期一, 19 八月 2024 21:00:59 +0800
Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV

---
 pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
index 355834b..d443956 100644
--- a/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
+++ b/pipIrr-platform/pipIrr-web/pipIrr-web-base/src/main/java/com/dy/pipIrrBase/user/UserCtrl.java
@@ -95,7 +95,7 @@
         try {
             QueryResultVo<List<VoUserInfo>> res = this.sv.selectSome(vo);
             if(res.itemTotal == 0) {
-                return BaseResponseUtils.buildFail(SystemResultCode.THE_USER_NOT_EXIST.getMessage());
+                return BaseResponseUtils.buildSuccess(SystemResultCode.THE_USER_NOT_EXIST.getMessage());
             }else {
                 return BaseResponseUtils.buildSuccess(res);
             }
@@ -297,13 +297,13 @@
                             schema = @Schema(implementation = Boolean.class))}
             )
     })
-    @PostMapping(path = "resetPassword")
+    @PostMapping(path = "resetPassword", consumes = MediaType.APPLICATION_JSON_VALUE)
     @SsoAop()
-    public BaseResponse<Boolean> resetPassword(String id) throws Exception {
-        if (id == null || id == "") {
+    public BaseResponse<Boolean> resetPassword(@RequestBody ResetPasswordVo vo) throws Exception {
+        if (vo.id == null || vo.id == "") {
             return BaseResponseUtils.buildFail("id涓嶈兘涓虹┖");
         }
-        Long idLg = Long.parseLong(id);
+        Long idLg = Long.parseLong(vo.id);
         int count;
         try {
             BaUser po = this.sv.selectById(idLg);

--
Gitblit v1.8.0