🐛 删除文章未使用标签

This commit is contained in:
x ronger 2020-03-14 17:29:34 +08:00
parent ee1de2f785
commit 9d81a82bf1

View File

@ -59,7 +59,8 @@ public class TagServiceImpl extends AbstractService<Tag> implements TagService {
addTagArticle = true; addTagArticle = true;
addUserTag = true; addUserTag = true;
} else { } else {
for(ArticleTagDTO articleTag : articleTagDTOList) { for(int m=0,n=articleTagDTOList.size();m<n; m++) {
ArticleTagDTO articleTag = articleTagDTOList.get(m);
if (articleTag.getIdTag().equals(tag.getIdTag())) { if (articleTag.getIdTag().equals(tag.getIdTag())) {
articleTagDTOList.remove(articleTag); articleTagDTOList.remove(articleTag);
} }