| | |
| | | if (user.getPassword().equals(oldMd5)) { |
| | | String newMd5 = MD5.md5(newPwd); |
| | | user.setPassword(newMd5); |
| | | user.setPassWordUpdate(new Date()); |
| | | user.updateById(); |
| | | return SUCCESS_TIP; |
| | | } else { |
| | |
| | | User objectUser = UserFactory.createUser(user); |
| | | //查找平台所属公司 |
| | | //Search for the company that owns the platform. |
| | | objectUser.setPassWordUpdate(new Date()); |
| | | this.userService.save(objectUser); |
| | | |
| | | return SUCCESS_TIP; |
| | |
| | | assertAuth(userId); |
| | | this.userService.setStatus(userId, ManagerStatus.FREEZED.getCode()); |
| | | |
| | | User user = userService.getById(userId); |
| | | if (user.getRoleType() == 2){ |
| | | |
| | | }else if (user.getRoleType() == 3){ |
| | | } |
| | | return SUCCESS_TIP; |
| | | } |
| | | |
| | |
| | | assertAuth(userId); |
| | | this.userService.setStatus(userId, ManagerStatus.OK.getCode()); |
| | | |
| | | User user = userService.getById(userId); |
| | | if (user.getRoleType() == 2){ |
| | | |
| | | }else if (user.getRoleType() == 3){ |
| | | } |
| | | return SUCCESS_TIP; |
| | | } |
| | | |