|
@@ -178,13 +178,15 @@ public class DocDirServiceImpl implements IDocDirService {
|
|
|
* @return 结果集
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, Object> selectDirByUser(Long userId) {
|
|
|
+ public Map<String, Object> selectDirByUser(Long userId, String type) {
|
|
|
Map<String, Object> result = new HashMap<>(4);
|
|
|
List<DocSpace> spaceList = docSpaceService.getSpaceByUser(userId);
|
|
|
result.put("space", spaceList);
|
|
|
List<Long> spaceIds = new ArrayList<>();
|
|
|
spaceList.forEach(space -> {
|
|
|
- spaceIds.add(space.getSpaceId());
|
|
|
+ if (StringUtils.isEmpty(type) || type.equals(space.getSpaceType())) {
|
|
|
+ spaceIds.add(space.getSpaceId());
|
|
|
+ }
|
|
|
});
|
|
|
result.put("dir", docDirMapper.selectDirByUser(spaceIds, userId));
|
|
|
return result;
|