Преглед на файлове

Merge remote-tracking branch 'origin/master'

master
PoffyZhang преди 1 година
родител
ревизия
dcb88bd070
променени са 1 файла, в които са добавени 11 реда и са изтрити 8 реда
  1. +11
    -8
      pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java

+ 11
- 8
pmapi/src/main/java/com/ningdatech/pmapi/filemanage/manage/ProjectFileManage.java Целия файл

@@ -167,14 +167,17 @@ public class ProjectFileManage {
historyService.createHistoricProcessInstanceQuery().processInstanceId(instCode).singleResult();
ProjectInst projectInst = projectInstService
.getOne(Wrappers.lambdaQuery(ProjectInst.class).eq(ProjectInst::getInstCode, instCode));
Integer instType = projectInst.getInstType();
// 从申请借阅信息表中查询当前项目是否有当前登录用户发起的申请借阅审批流程
ProjectApplyBorrow applyBorrow = projectApplyBorrowService.getOne(Wrappers
.lambdaQuery(ProjectApplyBorrow.class).eq(ProjectApplyBorrow::getApplyBorrowEmployeeCode, employeeCode)
.eq(ProjectApplyBorrow::getProjectId, p.getId()).eq(ProjectApplyBorrow::getInstanceId, instCode));
if (Objects.nonNull(applyBorrow) && InstTypeEnum.APPLY_BORROW.getCode().equals(instType)
&& !HisProInsEndActId.END.equals(newInstance.getEndActivityId())) {
vo.setCanApplyBorrow(Boolean.FALSE);
// 推送省局联审的项目流程实例为EMPTY
if (Objects.nonNull(projectInst)) {
Integer instType = projectInst.getInstType();
// 从申请借阅信息表中查询当前项目是否有当前登录用户发起的申请借阅审批流程
ProjectApplyBorrow applyBorrow = projectApplyBorrowService.getOne(Wrappers
.lambdaQuery(ProjectApplyBorrow.class).eq(ProjectApplyBorrow::getApplyBorrowEmployeeCode, employeeCode)
.eq(ProjectApplyBorrow::getProjectId, p.getId()).eq(ProjectApplyBorrow::getInstanceId, instCode));
if (Objects.nonNull(applyBorrow) && InstTypeEnum.APPLY_BORROW.getCode().equals(instType)
&& !HisProInsEndActId.END.equals(newInstance.getEndActivityId())) {
vo.setCanApplyBorrow(Boolean.FALSE);
}
}
return vo;
}).collect(Collectors.toList());


Loading…
Отказ
Запис