fix: 个人基本信息设置修复邮件和电话字段不匹配的问题;头像上传修复所保存文件所在文件夹命名问题

This commit is contained in:
萌狼蓝天 2024-11-11 08:59:56 +08:00
parent b8f3f000c5
commit e4fc61eee5
9 changed files with 6 additions and 6 deletions

View File

@ -24,6 +24,7 @@ public class StpInterfaceImpl implements StpInterface {
/** /**
* 返回一个账号所拥有的权限码集合 * 返回一个账号所拥有的权限码集合
*
*/ */
@Override @Override
public List<String> getPermissionList(Object loginId, String loginType) { public List<String> getPermissionList(Object loginId, String loginType) {

View File

@ -1,6 +1,6 @@
package com.guaiguailang.harmony.constant; package com.guaiguailang.harmony.constant;
public class FileUploadFolder { public class FileUploadFolder {
public static final String USER_AVATER_FOLDER = "usera_vatar"; public static final String USER_AVATER_FOLDER = "userAvatar";
public static final String ACTIVITY_FOLDER = "activity"; public static final String ACTIVITY_FOLDER = "activity";
} }

View File

@ -12,7 +12,7 @@ public class ParamUserAdd {
String username; String username;
String password; String password;
String email; String email;
String telphone; String telephone;
String roleId; String roleId;
String avatar; String avatar;
int status; int status;

View File

@ -183,7 +183,7 @@ public class UserServiceImpl implements UserService {
userAddParam.setStatus(1); userAddParam.setStatus(1);
// 其他信息配置 // 其他信息配置
userAddParam.setEmail(userAddParam.getEmail()==null?"":userAddParam.getEmail()); userAddParam.setEmail(userAddParam.getEmail()==null?"":userAddParam.getEmail());
userAddParam.setTelphone(userAddParam.getTelphone()==null?"":userAddParam.getTelphone()); userAddParam.setTelephone(userAddParam.getTelephone()==null?"":userAddParam.getTelephone());
userAddParam.setAvatar(userAddParam.getAvatar()==null?"":userAddParam.getAvatar()); userAddParam.setAvatar(userAddParam.getAvatar()==null?"":userAddParam.getAvatar());
userAddParam.setCode(userAddParam.getCode()==null?"":userAddParam.getCode()); userAddParam.setCode(userAddParam.getCode()==null?"":userAddParam.getCode());
int result = userMapper.addUser(userAddParam); int result = userMapper.addUser(userAddParam);
@ -294,7 +294,7 @@ return ResponseResult.error("删除失败");
if (StringUtils.isAnyBlank(userAddParam.getId().toString(),userAddParam.getName())) { if (StringUtils.isAnyBlank(userAddParam.getId().toString(),userAddParam.getName())) {
return ResponseResult.error("请输入昵称"); return ResponseResult.error("请输入昵称");
} }
Integer result = userMapper.selfUpdateUserInfo(userAddParam.getId(),userAddParam.getName(),userAddParam.getEmail(),userAddParam.getTelphone()); Integer result = userMapper.selfUpdateUserInfo(userAddParam.getId(),userAddParam.getName(),userAddParam.getEmail(),userAddParam.getTelephone());
if (result==1){ if (result==1){
return ResponseResult.success(); return ResponseResult.success();
}else { }else {

View File

@ -32,7 +32,7 @@ mybatis.configuration.map-underscore-to-camel-case=true
spring.data.redis.host=localhost spring.data.redis.host=localhost
spring.data.redis.port=6379 spring.data.redis.port=6379
spring.data.redis.database=10 spring.data.redis.database=10
spring.data.redis.password=123456 spring.data.redis.password=
spring.data.redis.lettuce.pool.max-active= 8 spring.data.redis.lettuce.pool.max-active= 8
spring.data.redis.lettuce.pool.max-wait=-1 spring.data.redis.lettuce.pool.max-wait=-1
spring.data.redis.lettuce.pool.max-idle=8 spring.data.redis.lettuce.pool.max-idle=8

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1 +0,0 @@
111

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 320 KiB