Commit e96bd77a authored by 曹盼盼's avatar 曹盼盼

由于流程状态改变导致项目过滤有问题已修复

parent 515658ad
...@@ -303,7 +303,7 @@ public class ProjectResourceController extends BaseController { ...@@ -303,7 +303,7 @@ public class ProjectResourceController extends BaseController {
@ApiOperation(httpMethod = "get",value = "根据当前登录人获取登录人参与的项目列表", notes = "根据当前登录人获取登录人参与的项目列表") @ApiOperation(httpMethod = "get",value = "根据当前登录人获取登录人参与的项目列表", notes = "根据当前登录人获取登录人参与的项目列表")
public ResponseModel<List<Project>> selectByUserId(){ public ResponseModel<List<Project>> selectByUserId(){
List<Project> projectList = projectResourceServiceImpl.getProjectList(); List<Project> projectList = projectResourceServiceImpl.getProjectList();
projectList = projectList.stream().filter(r -> ProjectInitiationEnum.流程结束.getName().equals(r.getStatus())).collect(Collectors.toList()); projectList = projectList.stream().filter(r -> "竣工流程结束!".equals(r.getStatus())).collect(Collectors.toList());
return ResponseHelper.buildResponse(projectList); return ResponseHelper.buildResponse(projectList);
} }
} }
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