Commit b9b7a07b authored by 姬鋆屾's avatar 姬鋆屾
parents 535236da 85ead38c
......@@ -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