提交 bcb0e110 authored 作者: yucaiwei's avatar yucaiwei

--no commit message

上级 614eaf1d
...@@ -23,10 +23,12 @@ import com.zrqx.core.exception.BaseException; ...@@ -23,10 +23,12 @@ import com.zrqx.core.exception.BaseException;
import com.zrqx.core.form.sysuser.fg.user.FgUpdatePasswordForm; import com.zrqx.core.form.sysuser.fg.user.FgUpdatePasswordForm;
import com.zrqx.core.form.sysuser.fg.user.FgUpdateUserForm; import com.zrqx.core.form.sysuser.fg.user.FgUpdateUserForm;
import com.zrqx.core.form.sysuser.fg.user.LoginUserInfo; import com.zrqx.core.form.sysuser.fg.user.LoginUserInfo;
import com.zrqx.core.model.sysuser.comment.Comment;
import com.zrqx.core.model.sysuser.user.User; import com.zrqx.core.model.sysuser.user.User;
import com.zrqx.core.util.bean.BeanUtils; import com.zrqx.core.util.bean.BeanUtils;
import com.zrqx.core.util.response.CallBack; import com.zrqx.core.util.response.CallBack;
import com.zrqx.sysuser.commons.redis.Redis; import com.zrqx.sysuser.commons.redis.Redis;
import com.zrqx.sysuser.fg.service.comment.FgCommentService;
import com.zrqx.sysuser.fg.service.user.FgUserService; import com.zrqx.sysuser.fg.service.user.FgUserService;
/** /**
* 前台用户 * 前台用户
...@@ -40,6 +42,8 @@ public class FgUserController { ...@@ -40,6 +42,8 @@ public class FgUserController {
private Redis redis; private Redis redis;
@Autowired @Autowired
private FgUserService userSerivce; private FgUserService userSerivce;
@Autowired
private FgCommentService commentService;
@ApiOperation(value = "个人信息-修改" , notes ="1:手机号格式错误;2:邮箱格式错误") @ApiOperation(value = "个人信息-修改" , notes ="1:手机号格式错误;2:邮箱格式错误")
@PostMapping(value = SysUserRequestPath.UPDATE + SysUserRequestPath.INFO) @PostMapping(value = SysUserRequestPath.UPDATE + SysUserRequestPath.INFO)
...@@ -58,6 +62,12 @@ public class FgUserController { ...@@ -58,6 +62,12 @@ public class FgUserController {
// 更新redis 信息 // 更新redis 信息
BeanUtils.copyProperties(form, info); BeanUtils.copyProperties(form, info);
redis.set(info.getToken(), info); redis.set(info.getToken(), info);
Example example = commentService.createExample();
example.and().andEqualTo("userId", info.getUserId());
Comment co = new Comment();
co.setUserImg(info.getImg());
commentService.UpdateByExampleSelective(co, example);
return CallBack.success("成功"); return CallBack.success("成功");
} }
@ApiOperation(value = "修改密码", notes = "0:成功;1:旧密码错误;2:新密码不能为空;3:两次密码不一致;4:新密码不能与旧密码重复") @ApiOperation(value = "修改密码", notes = "0:成功;1:旧密码错误;2:新密码不能为空;3:两次密码不一致;4:新密码不能与旧密码重复")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论