提交 3757a5e9 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 9cc050c4
......@@ -187,7 +187,7 @@ public class FgReplyController {
} else {
thumbsUpService.insert(thumbsUp);
}
}else{
} else {
Reply reply = replyService.selectByPrimaryKey(aaf.getOid());
reply.setPraiseNum(reply.getPraiseNum() == null ? 0 : reply
.getPraiseNum() - 1);
......
......@@ -349,9 +349,9 @@ public class FgTalkController {
Member member = redis.getMember();
attention.setMemberId(member.getId());
Integer count = attentionService.selectCount(attention);
if(count > 0){
if (count > 0) {
result = attentionService.delete(attention);
}else{
} else {
attention.setCreateTime(new Date());
result = attentionService.insertSelective(attention);
}
......@@ -413,21 +413,21 @@ public class FgTalkController {
@ApiOperation(value = "修改头像", notes = "修改头像")
@PostMapping(value = TalkRequestPath.UPDATE)
public CallBack<Boolean> updateImg(String img) throws IOException {
String newImg = "http://localhost:8097/file/?fileName="+img;
String newImg = "http://localhost:8097/file/?fileName=" + img;
memberInfoClient.updateImg(newImg);
Talk talk = new Talk();
Member m = redis.getMember();
m.setId(m.getId());
m.setImg(newImg);
talk.setAuthorId(m.getId());
List<Talk>talkList = talkService.select(talk);
List<Talk> talkList = talkService.select(talk);
for (Talk talk2 : talkList) {
talk2.setImg(newImg);
talkService.updateByPrimaryKeySelective(talk2);
}
Reply reply=new Reply();
Reply reply = new Reply();
reply.setReplyerId(m.getId());
List<Reply>replyList=replyService.select(reply);
List<Reply> replyList = replyService.select(reply);
for (Reply reply2 : replyList) {
reply2.setImg(newImg);
replyService.updateByPrimaryKeySelective(reply2);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论