fix: 加表

This commit is contained in:
guoyuqi 2021-11-09 14:15:01 +08:00 committed by 刘瑞斌
parent 88116abfa8
commit d67ec08cd1
2 changed files with 12 additions and 1 deletions

View File

@ -590,6 +590,10 @@ public class IssuesService {
IssueFollowExample example = new IssueFollowExample();
example.createCriteria().andIssueIdEqualTo(issueId);
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;
}
}

View File

@ -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