|
|
|
@ -270,10 +270,14 @@ public class NewsServiceImpl extends BaseServiceImpl<NewsDao, NewsEntity> implem |
|
|
|
} else { |
|
|
|
if (CollUtil.isEmpty(newsGridList)) { |
|
|
|
Result<List<Long>> adminResult = adminFeignClient.listGridIdByDeptPid(newsDeptId); |
|
|
|
if (!adminResult.success() || CollUtil.isEmpty(adminResult.getData())) { |
|
|
|
if (!adminResult.success()) { |
|
|
|
throw new RenException("获取部门信息失败"); |
|
|
|
} |
|
|
|
newsGridList = adminResult.getData(); |
|
|
|
if(CollUtil.isEmpty(adminResult.getData())) { |
|
|
|
newsGridList.add(newsDeptId); |
|
|
|
}else { |
|
|
|
newsGridList = adminResult.getData(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (isSave) { |
|
|
|
// setNull(newsDto, entity);
|
|
|
|
|