🐛 文章标签问题修复

This commit is contained in:
x ronger 2020-09-16 22:55:51 +08:00
parent cf1a1f7d8f
commit 3189b59192

View File

@ -61,10 +61,13 @@ public class TagServiceImpl extends AbstractService<Tag> implements TagService {
addTagArticle = true;
addUserTag = true;
} else {
for(int m=0,n=articleTagDTOList.size()-1;m<n; m++) {
int n = articleTagDTOList.size();
for (int m = 0; m < n; m++) {
ArticleTagDTO articleTag = articleTagDTOList.get(m);
if (articleTag.getIdTag().equals(tag.getIdTag())) {
articleTagDTOList.remove(articleTag);
m--;
n--;
}
}
Integer count = tagMapper.selectCountTagArticleById(tag.getIdTag(), article.getIdArticle());