瀏覽代碼

延期申请列表修改

master
CMM 1 年之前
父節點
當前提交
b8cc44cd23
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java

+ 4
- 2
pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/manage/DelayedApplyManage.java 查看文件

@@ -141,17 +141,19 @@ public class DelayedApplyManage {
// 判断当前项目是否已经开启了延期申请并且没有审批完成
ProjectDelayApply delayApply = projectDelayApplyService.getOne(Wrappers.lambdaQuery(ProjectDelayApply.class)
.eq(ProjectDelayApply::getProjectId, w.getId())
.orderByDesc(ProjectDelayApply::getCreateOn)
.last("limit 1"));
String instCode = delayApply.getInstanceId();
// 获取流程通过后的流程实例
// 获取流程实例
HistoricProcessInstance newInstance = historyService.createHistoricProcessInstanceQuery()
.processInstanceId(instCode)
.singleResult();
ProjectInst projectInst = projectInstService.getOne(Wrappers.lambdaQuery(ProjectInst.class)
.eq(ProjectInst::getInstCode, instCode));
Integer instType = projectInst.getInstType();
// 延期申请流程还未审核结束
if (InstTypeEnum.APPLY_DELAY.getCode().equals(instType) &&
!HisProInsEndActId.END.equals(newInstance.getEndActivityId())){
Objects.isNull(newInstance.getEndActivityId())){
item.setCanDelayApply(Boolean.FALSE);
}
// 如果是延期申请审核被驳回,设置项目可以申请延期申报


Loading…
取消
儲存