|
@@ -112,9 +112,9 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
List<String> numList = param.getNumList();
|
|
|
|
|
|
List<String> addNumList = numList.stream().filter(e -> !dbNumList.contains(e)).collect(Collectors.toList());
|
|
|
- List<String> delNumList = dbNumList.stream().filter(e -> !numList.contains(e)).collect(Collectors.toList());
|
|
|
+ //List<String> delNumList = dbNumList.stream().filter(e -> !numList.contains(e)).collect(Collectors.toList());
|
|
|
|
|
|
- projectNumService.delNumList(param.getProjectId(),delNumList);
|
|
|
+ //projectNumService.delNumList(param.getProjectId(),delNumList);
|
|
|
projectNumService.addNumList(param.getProjectId(),addNumList);
|
|
|
|
|
|
}
|
|
@@ -132,20 +132,4 @@ public class ProjectServiceImpl extends ServiceImpl<IProjectMapper, Project> imp
|
|
|
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public Object getSceneByProjectId( ProjectParam param) {
|
|
|
- if(param.getProjectId() == null){
|
|
|
- throw new BusinessException(ResultCode.PARAM_ERROR);
|
|
|
- }
|
|
|
- Project project = this.getById(param.getProjectId());
|
|
|
- if(project == null){
|
|
|
- return PageInfo.PageInfoEmpty(param.getPageNum(),param.getPageSize());
|
|
|
- }
|
|
|
- List<ProjectNum> projectNumList = projectNumService.getByProjectId(Arrays.asList(param.getProjectId()));
|
|
|
- if(projectNumList== null || projectNumList.isEmpty()){
|
|
|
- return PageInfo.PageInfoEmpty(param.getPageNum(),param.getPageSize());
|
|
|
- }
|
|
|
- List<String> numList = projectNumList.stream().map(ProjectNum::getNum).collect(Collectors.toList());
|
|
|
- return numList;
|
|
|
- }
|
|
|
}
|