Commit f4714dfb authored by 赵啸非's avatar 赵啸非

添加站点返回提示信息

parent 16b86937
...@@ -19,6 +19,11 @@ public class SiteMatterVo extends BaseEntityLong { ...@@ -19,6 +19,11 @@ public class SiteMatterVo extends BaseEntityLong {
*/ */
private String belongDept; private String belongDept;
/**
* 部门编号
*/
private String deptCode;
/** /**
* 窗口到现场次数 * 窗口到现场次数
*/ */
......
...@@ -27,20 +27,19 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao ...@@ -27,20 +27,19 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
@Autowired @Autowired
private MatterService matterService; private MatterService matterService;
@Override @Override
protected void findAfter(SiteMatterEntity params, PageInfo pageInfo, Context context, List<SiteMatterEntity> list) throws AppException { protected void findAfter(SiteMatterEntity params, PageInfo pageInfo, Context context, List<SiteMatterEntity> list) throws AppException {
list.stream().peek(item->{ list.forEach(item->{
if(!ObjectUtils.isEmpty(item.getMatterId())){ if(!ObjectUtils.isEmpty(item.getMatterId())){
MatterEntity matterEntity = matterService.getCache(item.getMatterId().toString()); MatterEntity matterEntity = matterService.getCache(item.getMatterId().toString());
if(!ObjectUtils.isEmpty(matterEntity)){ if(!ObjectUtils.isEmpty(matterEntity)){
item.setBelongDept(matterEntity.getBelongDept()); item.setBelongDept(matterEntity.getBelongDept());
item.setWindowToTheSceneNum(matterEntity.getWindowToTheSceneNum()); item.setWindowToTheSceneNum(matterEntity.getWindowToTheSceneNum());
item.setOnlineToTheSceneNum(matterEntity.getOnlineToTheSceneNum()); item.setOnlineToTheSceneNum(matterEntity.getOnlineToTheSceneNum());
item.setDeptCode(matterEntity.getDeptCode());
} }
} }
}).count(); });
super.findAfter(params, pageInfo, context, list); super.findAfter(params, pageInfo, context, list);
} }
} }
\ No newline at end of file
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