1111
This commit is contained in:
parent
601dfc72bc
commit
0d878edfe9
|
@ -57,14 +57,14 @@ public class FlowUserController extends BaseController {
|
|||
*/
|
||||
@GetMapping(value = "/rest/getUserGroupList")
|
||||
public FlowRemoteVO getUserGroupList(@RequestParam(value = "filter",required = false) String filter) {
|
||||
startPage();
|
||||
List<RemoteGroup> flowUserGroupList = flowableUserService.getFlowUserGroupList(filter);
|
||||
TableDataInfo dataTable = getDataTable(flowUserGroupList);
|
||||
|
||||
List<RemoteGroup> flowUserGroupList = flowableUserService.getLinkFlowUserGroupList(filter);
|
||||
|
||||
FlowRemoteVO flowRemoteVO = new FlowRemoteVO();
|
||||
flowRemoteVO.setData(dataTable.getRows());
|
||||
flowRemoteVO.setSize(dataTable.getPageSize());
|
||||
flowRemoteVO.setStart(dataTable.getPageIndex());
|
||||
flowRemoteVO.setTotal(dataTable.getTotal());
|
||||
flowRemoteVO.setData(flowUserGroupList);
|
||||
// flowRemoteVO.setSize(dataTable.getPageSize());
|
||||
// flowRemoteVO.setStart(dataTable.getPageIndex());
|
||||
flowRemoteVO.setTotal(flowUserGroupList.size());
|
||||
return flowRemoteVO;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -245,13 +245,22 @@ public class FlowableUserServiceImpl implements FlowableUserService {
|
|||
List<RemoteGroup> flowUserGroupList = getFlowUserGroupList(filter);
|
||||
if(CollectionUtil.isNotEmpty(flowUserGroupList)){
|
||||
flowUserGroupList.forEach(t->{
|
||||
FlowGroupDO flowGroupDO1 = flowGroupDOService.selectFlowGroupDOById(Long.parseLong(t.getId()));
|
||||
FlowGroupDO flowGroupDOById = flowGroupDOService.selectFlowGroupDOById(Long.parseLong(t.getId()));
|
||||
if(flowGroupDOById.getParentId()==0L){
|
||||
return;
|
||||
}
|
||||
FlowGroupDO flowGroupDO=new FlowGroupDO();
|
||||
flowGroupDO.setParentId(Long.parseLong(t.getId()));
|
||||
List<FlowGroupDO> flowGroupDOS = flowGroupDOService.selectFlowGroupDOList(flowGroupDO);
|
||||
if()
|
||||
if(CollectionUtil.isEmpty(flowGroupDOS)){
|
||||
RemoteGroup remoteGroup=new RemoteGroup();
|
||||
FlowGroupDO parentFlowGroupDO = flowGroupDOService.selectFlowGroupDOById(flowGroupDOById.getParentId());
|
||||
remoteGroup.setId(t.getId());
|
||||
remoteGroup.setName(parentFlowGroupDO.getRoleName()+"---"+t.getName());
|
||||
returnFlowUserGroupList.add(remoteGroup);
|
||||
}
|
||||
});
|
||||
}
|
||||
return null;
|
||||
return returnFlowUserGroupList;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue