Commit 662ac7aa authored by 刘基明's avatar 刘基明

npe fix

parent 0a571884
...@@ -261,6 +261,9 @@ public class ThemeService { ...@@ -261,6 +261,9 @@ public class ThemeService {
} }
public Set<String> getForwardUsers(List<String> themeIds) { public Set<String> getForwardUsers(List<String> themeIds) {
if (CollectionUtils.isEmpty(themeIds)){
return new HashSet<>();
}
return themeMapper.selectList(new LambdaQueryWrapper<ThemeEntity>() return themeMapper.selectList(new LambdaQueryWrapper<ThemeEntity>()
.in(ThemeEntity::getFormerThemeId, themeIds) .in(ThemeEntity::getFormerThemeId, themeIds)
.eq(ThemeEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED)) .eq(ThemeEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment