|
|
@ -447,19 +447,14 @@ public class ProjectServiceImpl extends BaseServiceImpl implements ProjectServic |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* query all project list that have one or more process definitions. |
|
|
|
* query all project list |
|
|
|
* |
|
|
|
* |
|
|
|
* @return project list |
|
|
|
* @return project list |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Map<String, Object> queryAllProjectList() { |
|
|
|
public Map<String, Object> queryAllProjectList() { |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
Map<String, Object> result = new HashMap<>(); |
|
|
|
List<Project> projects = new ArrayList<>(); |
|
|
|
List<Project> projects = projectMapper.queryAllProject(); |
|
|
|
|
|
|
|
|
|
|
|
List<Integer> projectIds = processDefinitionMapper.listProjectIds(); |
|
|
|
|
|
|
|
if (CollectionUtils.isNotEmpty(projectIds)) { |
|
|
|
|
|
|
|
projects = projectMapper.selectBatchIds(projectIds); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.put(Constants.DATA_LIST, projects); |
|
|
|
result.put(Constants.DATA_LIST, projects); |
|
|
|
putMsg(result, Status.SUCCESS); |
|
|
|
putMsg(result, Status.SUCCESS); |
|
|
|