Commit 85ead38c authored by 廖旭伟's avatar 廖旭伟

新闻公告增加关联公司

parent 7b115172
......@@ -103,7 +103,7 @@ public class NewsServiceImpl extends AbstractCRUDServiceImpl<NewsDao, NewsEntity
}
if(StringUtils.isNotEmpty(item.getRelatedCompany())){
StringBuilder sb = new StringBuilder();
for(String id:item.getCategoryName().split(",")){
for(String id:item.getRelatedCompany().split(",")){
CompanyEntity companyEntity = companyService.get(Long.valueOf(id));
if(companyEntity!=null){
sb.append(companyEntity.getCompanyName());
......
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