Browse Source

modify:

1. 项目进度处理;
tags/24091301
WendyYang 1 month ago
parent
commit
a470727e25
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/stage/FinalInspectionHandle.java

+ 4
- 1
hz-pm-api/src/main/java/com/hz/pm/api/projectlib/handle/stage/FinalInspectionHandle.java View File

@@ -1,7 +1,9 @@
package com.hz.pm.api.projectlib.handle.stage; package com.hz.pm.api.projectlib.handle.stage;


import cn.hutool.core.collection.CollUtil;
import com.hz.pm.api.projectdeclared.model.entity.Purchase; import com.hz.pm.api.projectdeclared.model.entity.Purchase;
import com.hz.pm.api.projectdeclared.model.entity.PurchaseInst; import com.hz.pm.api.projectdeclared.model.entity.PurchaseInst;
import com.hz.pm.api.projectdeclared.model.enumerization.BidTypeEnum;
import com.hz.pm.api.projectlib.handle.AbstractProcessHandle; import com.hz.pm.api.projectlib.handle.AbstractProcessHandle;
import com.hz.pm.api.projectlib.handle.HandleParamContext; import com.hz.pm.api.projectlib.handle.HandleParamContext;
import com.hz.pm.api.projectlib.model.enumeration.InstTypeEnum; import com.hz.pm.api.projectlib.model.enumeration.InstTypeEnum;
@@ -64,7 +66,8 @@ public class FinalInspectionHandle extends AbstractProcessHandle {
tenderProgress.setProcessProgressVo(instDetail); tenderProgress.setProcessProgressVo(instDetail);
processes.add(tenderProgress); processes.add(tenderProgress);
}); });
if (instMap.size() != purchases.size()) {
int count = CollUtil.count(purchases, w -> BidTypeEnum.BUILD_APP.eq(w.getBidType()));
if (instMap.size() != count) {
stepStatus = StepStatusEnum.NOT_START; stepStatus = StepStatusEnum.NOT_START;
} else { } else {
stepStatus = getPurchaseStatus(processes); stepStatus = getPurchaseStatus(processes);


Loading…
Cancel
Save