|
|
@ -25,6 +25,7 @@ import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.RandomStringUtils; |
|
|
|
import org.eclipse.jetty.http.HttpStatus; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
@ -1244,6 +1245,9 @@ public class UserService implements IUserService { |
|
|
|
public UserVo.WxInfo updateUserInfo(Long currentUserId, UserDto.WxInfo userInfo) { |
|
|
|
//通过userid查找到用户
|
|
|
|
SysUser user = userDao.selectByPrimaryKey(currentUserId); |
|
|
|
if(ObjectUtil.isNull(user)){ |
|
|
|
throw new BaseException(CodeEnum.NOT_LOGIN); |
|
|
|
} |
|
|
|
|
|
|
|
if (StrUtil.isNotEmpty(userInfo.getNickname())) { |
|
|
|
user.setNickname(userInfo.getNickname()); |
|
|
|