fix: 加表
This commit is contained in:
parent
88116abfa8
commit
d67ec08cd1
|
@ -590,6 +590,10 @@ public class IssuesService {
|
||||||
IssueFollowExample example = new IssueFollowExample();
|
IssueFollowExample example = new IssueFollowExample();
|
||||||
example.createCriteria().andIssueIdEqualTo(issueId);
|
example.createCriteria().andIssueIdEqualTo(issueId);
|
||||||
List<IssueFollow> follows = issueFollowMapper.selectByExample(example);
|
List<IssueFollow> follows = issueFollowMapper.selectByExample(example);
|
||||||
return follows.stream().map(IssueFollow::getFollowId).distinct().collect(Collectors.toList());
|
if(follows==null||follows.size()==0){
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
result = follows.stream().map(IssueFollow::getFollowId).distinct().collect(Collectors.toList());
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
CREATE TABLE `issue_follow` (
|
||||||
|
`issue_id` varchar(50) DEFAULT NULL,
|
||||||
|
`follow_id` varchar(50) DEFAULT NULL,
|
||||||
|
UNIQUE KEY `issue_follow_pk` (`issue_id`,`follow_id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue