|
|
@@ -20,6 +20,7 @@ import com.hz.pm.api.projectdeclared.model.dto.DeclaredProjectExportDTO; |
|
|
|
import com.hz.pm.api.projectdeclared.model.entity.Contract; |
|
|
|
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.projectdeclared.model.req.SubmitFinallyInspectedReq; |
|
|
|
import com.hz.pm.api.projectdeclared.model.vo.FinalAcceptProgressStatisticsVO; |
|
|
|
import com.hz.pm.api.projectdeclared.model.vo.FinalAcceptanceVO; |
|
|
@@ -319,6 +320,7 @@ public class FinalAcceptanceManage { |
|
|
|
|
|
|
|
log.info("终验方案项目申报成功 【{}】", instanceId); |
|
|
|
tenderStateMachineUtil.pass(purchase); |
|
|
|
purchase.setFinalInspectionDate(req.getInspectionDate()); |
|
|
|
purchase.setFinalInspectionMaterials(req.getInspectionMaterials()); |
|
|
|
purchaseService.updateById(purchase); |
|
|
|
PurchaseInst purchaseInst = new PurchaseInst(); |
|
|
@@ -341,7 +343,8 @@ public class FinalAcceptanceManage { |
|
|
|
.in(PurchaseInst::getBidId, purchaseMap.keySet()); |
|
|
|
List<PurchaseInst> currPurchaseInstList = purchaseInstService.list(purchaseInstQuery); |
|
|
|
Set<Long> finalInspectedBidIds = CollUtils.fieldSet(currPurchaseInstList, PurchaseInst::getBidId); |
|
|
|
if (finalInspectedBidIds.size() == purchases.size()) { |
|
|
|
int needFinalAcceptCount = CollUtil.count(purchases, w -> BidTypeEnum.BUILD_APP.eq(w.getBidType())); |
|
|
|
if (finalInspectedBidIds.size() == needFinalAcceptCount) { |
|
|
|
projectStateMachineUtil.pass(project); |
|
|
|
projectService.updateById(project); |
|
|
|
} |
|
|
|