|
|
@@ -54,6 +54,7 @@ import com.wflow.exception.BusinessException; |
|
|
|
import com.wflow.workflow.bean.dto.OrgInfoDTO; |
|
|
|
import com.wflow.workflow.bean.process.FileBasicInfo; |
|
|
|
import com.wflow.workflow.bean.process.ProcessComment; |
|
|
|
import com.wflow.workflow.bean.vo.ProcessDetailVO; |
|
|
|
import com.wflow.workflow.bean.vo.ProcessStartParamsVo; |
|
|
|
import com.wflow.workflow.service.ProcessInstanceService; |
|
|
|
import com.wflow.workflow.service.ProcessModelService; |
|
|
@@ -184,9 +185,29 @@ public class ProjectFileManage { |
|
|
|
} |
|
|
|
|
|
|
|
public ProjectFileVO file(Long projectId) { |
|
|
|
ProjectDetailVO projectDetailVo = projectLibManage.getProjectDetail(projectId); |
|
|
|
|
|
|
|
return null; |
|
|
|
UserFullInfoDTO userFullInfo = userInfoHelper.getUserFullInfo(LoginUserUtil.getUserId()); |
|
|
|
String empPosUnitCode = userFullInfo.getEmpPosUnitCode(); |
|
|
|
|
|
|
|
// 判断该项目是否为本单位或下属单位的项目或者已经申请借阅成功的项目 |
|
|
|
Project project = projectService.getById(projectId); |
|
|
|
Set<String> subOrgList = getSubOrgList(empPosUnitCode); |
|
|
|
|
|
|
|
if (!checkCanRead(subOrgList,project)){ |
|
|
|
throw new BizException("您没有权限查看此项目档案!"); |
|
|
|
} |
|
|
|
ProjectFileVO projectFileVo = new ProjectFileVO(); |
|
|
|
ProjectDetailVO projectDetailVo = projectLibManage.getProjectDetail(projectId); |
|
|
|
List<ProcessDetailVO> processDetailVos = projectLibManage.processScheduleDetail(projectId); |
|
|
|
projectFileVo.setProjectDetailVo(projectDetailVo); |
|
|
|
projectFileVo.setProcessDetailVos(processDetailVos); |
|
|
|
projectFileVo.setProjectName(project.getProjectName()); |
|
|
|
projectFileVo.setCanRead(Boolean.TRUE); |
|
|
|
projectFileVo.setPojectCode(project.getProjectCode()); |
|
|
|
projectFileVo.setId(projectId); |
|
|
|
projectFileVo.setBuildOrgName(project.getBuildOrgName()); |
|
|
|
projectFileVo.setUpdateOn(project.getUpdateOn()); |
|
|
|
return projectFileVo; |
|
|
|
} |
|
|
|
|
|
|
|
public String wantRead(Long projectId) { |
|
|
|