|
|
@@ -1,7 +1,9 @@ |
|
|
|
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.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.HandleParamContext; |
|
|
|
import com.hz.pm.api.projectlib.model.enumeration.InstTypeEnum; |
|
|
@@ -64,7 +66,8 @@ public class FinalInspectionHandle extends AbstractProcessHandle { |
|
|
|
tenderProgress.setProcessProgressVo(instDetail); |
|
|
|
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; |
|
|
|
} else { |
|
|
|
stepStatus = getPurchaseStatus(processes); |
|
|
|