|
|
@@ -278,9 +278,7 @@ public class WorkbenchManage { |
|
|
|
w -> { |
|
|
|
Set<String> sourceNames = CollUtils.fieldSet(w, ProjectGovSystemReplaceInfos::getSourceSystem); |
|
|
|
Set<String> targetNames = CollUtils.fieldSet(w, ProjectGovSystemReplaceInfos::getTargetSystem); |
|
|
|
int targetCount = CollUtil.count(targetNames, isValidSystem::test); |
|
|
|
int sourceCount = CollUtil.count(sourceNames, isValidSystem::test); |
|
|
|
return Pair.create(sourceCount, targetCount); |
|
|
|
return Pair.create(sourceNames.size(), targetNames.size()); |
|
|
|
}))).values(); |
|
|
|
int totalTargetCount = 0; |
|
|
|
int totalSourceCount = 0; |
|
|
@@ -534,11 +532,13 @@ public class WorkbenchManage { |
|
|
|
// 下达金额 |
|
|
|
.ge(req.getApproveAmountMin() != null, Project::getApprovalAmount, req.getApproveAmountMin()) |
|
|
|
.ge(req.getApproveAmountMax() != null, Project::getApprovalAmount, req.getApproveAmountMax()) |
|
|
|
.eq(req.getUnitStrip() != null, Project::getUnitStrip, req.getUnitStrip()) |
|
|
|
.eq(Project::getStage, ProjectStatus.STOPPED.getCode()) |
|
|
|
.eq(Project::getNewest, Boolean.TRUE) |
|
|
|
.orderByDesc(Project::getUpdateOn); |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.PROJECT_APPLICATION_SUBMIT); |
|
|
|
switch (req.getProcessNode()) { |
|
|
|
case PROJECT_DECLARED: |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.COMPLIANCE_REVIEW_PASS); |
|
|
|
break; |
|
|
|
case PROJECT_REVIEW: |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.PROJECT_REVIEW_PASS); |
|
|
@@ -547,29 +547,19 @@ public class WorkbenchManage { |
|
|
|
query.isNotNull(Project::getApprovalAmount).gt(Project::getApprovalAmount, BigDecimal.ZERO); |
|
|
|
break; |
|
|
|
case PROJECT_APPROVAL: |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.DECLARED_RECORD_PASS); |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.DECLARED_RECORD_SUBMIT); |
|
|
|
break; |
|
|
|
case PROJECT_PURCHASE: |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_NOTICE); |
|
|
|
break; |
|
|
|
case PROJECT_ADAPTION: |
|
|
|
projectQueryByPurchaseStatusChange(query, AdaptStateChangeEvent.ADAPT_INFO_PASSED); |
|
|
|
break; |
|
|
|
case SYSTEM_SELF_TEST: |
|
|
|
projectQueryByPurchaseStatusChange(query, SelfTestStateChangeEvent.SELF_TEST_PASSED); |
|
|
|
break; |
|
|
|
case SYSTEM_TEST_VALID: |
|
|
|
projectQueryByPurchaseStatusChange(query, TestValidStateChangeEvent.TEST_VALID_INFO_PASSED); |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_CONTRACT_RECORD); |
|
|
|
break; |
|
|
|
case FIRST_INSPECTED: |
|
|
|
case PILOT_RUNNING: |
|
|
|
projectQueryByPurchaseStatusChange(query, TenderStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES); |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES); |
|
|
|
break; |
|
|
|
case XCFHX_REVIEW: |
|
|
|
projectQueryByPurchaseStatusChange(query, XcfhxStateChangeEvent.XCFHX_APPLY_PASSED); |
|
|
|
case PROJECT_ADAPTION: |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.SUBMIT_PURCHASE_ORG_CONFIRM); |
|
|
|
break; |
|
|
|
case FINAL_INSPECTED: |
|
|
|
projectQueryByPurchaseStatusChange(query, TenderStateChangeEvent.FINALLY_INSPECTED_PASSED); |
|
|
|
projectQueryByProjectStatusChange(query, ProjectStateChangeEvent.FINAL_ACCEPTANCE_PASS); |
|
|
|
break; |
|
|
|
default: |
|
|
|
return PageVo.empty(); |
|
|
|