bug
This commit is contained in:
parent
df83e8418c
commit
2cda46fe21
|
|
@ -104,7 +104,7 @@ public class NewsInfoService {
|
||||||
List<Industry> industries = industryMapper.queryAll();
|
List<Industry> industries = industryMapper.queryAll();
|
||||||
for (Industry industryItem: industries) {
|
for (Industry industryItem: industries) {
|
||||||
if (industry.equals(industryItem.getPrimaryName()) || industryItem.equals(industryItem.getSecondaryName())) {
|
if (industry.equals(industryItem.getPrimaryName()) || industryItem.equals(industryItem.getSecondaryName())) {
|
||||||
industryMapper.saveNewsIndustryRel(newsInfo.getNewsId(), industryItem.getId());
|
industryMapper.saveNewsIndustryRel(relNews.getId(), industryItem.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -114,7 +114,7 @@ public class NewsInfoService {
|
||||||
List<Tag> matchedTags = tagMapper.queryTag(1L, sourcename, null, "create_time", null);
|
List<Tag> matchedTags = tagMapper.queryTag(1L, sourcename, null, "create_time", null);
|
||||||
for (Tag tag: matchedTags) {
|
for (Tag tag: matchedTags) {
|
||||||
if (tag.getName().equals(sourcename)) {
|
if (tag.getName().equals(sourcename)) {
|
||||||
tagMapper.saveNewsTagRel(newsInfo.getNewsId(), tag.getId());
|
tagMapper.saveNewsTagRel(relNews.getId(), tag.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue