|
|
@@ -473,17 +473,17 @@ public class NewsServiceImpl extends MPJBaseServiceImpl<NewsMapper, News> implem
|
|
|
}
|
|
|
}
|
|
|
//添加部门人员
|
|
|
- if (deptIdList != null) {
|
|
|
+ if (deptIdList.size() > 0) {
|
|
|
newsRelationMapper.insertDeptUser(xjrNews.getId(), deptIdList);
|
|
|
}
|
|
|
|
|
|
//添加部门人员
|
|
|
- if (classIdList != null) {
|
|
|
+ if (classIdList.size() > 0) {
|
|
|
newsRelationMapper.insertClassUser(xjrNews.getId(), classIdList);
|
|
|
}
|
|
|
|
|
|
//添加部门人员
|
|
|
- if (userIdList != null) {
|
|
|
+ if (userIdList.size() > 0) {
|
|
|
newsRelationMapper.insertPersonl(xjrNews.getId(), userIdList);
|
|
|
}
|
|
|
|