Commit 9dc5e6da authored by 赵啸非's avatar 赵啸非

添加站点事项部门名称

parent 7944315e
......@@ -31,9 +31,11 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
@Override
protected void findAfter(SiteMatterEntity params, PageInfo pageInfo, Context context, List<SiteMatterEntity> list) throws AppException {
list.stream().peek(item->{
MatterEntity matterEntity = matterService.getCache(item.getMatterId().toString());
if(ObjectUtils.isEmpty(matterEntity)){
item.setBelongDept(matterEntity.getBelongDept());
if(!ObjectUtils.isEmpty(item.getMatterId())){
MatterEntity matterEntity = matterService.getCache(item.getMatterId().toString());
if(!ObjectUtils.isEmpty(matterEntity)){
item.setBelongDept(matterEntity.getBelongDept());
}
}
}).count();
......
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