|
|
@@ -221,7 +221,6 @@ public class WorkbenchManage { |
|
|
|
List<Project> projects = new ArrayList<>(); |
|
|
|
Map<String, Long> purchaseEventMap = new HashMap<>(); |
|
|
|
ToLongFunction<AbstractStateChangeEvent> countPurchase = event -> purchaseEventMap.getOrDefault(event.name(), 0L); |
|
|
|
long firstInspectedCount = 0; |
|
|
|
for (ProcessNode node : ProcessNode.ALL) { |
|
|
|
long count; |
|
|
|
switch (node) { |
|
|
@@ -281,11 +280,9 @@ public class WorkbenchManage { |
|
|
|
count = countPurchase.applyAsLong(TestValidStateChangeEvent.TEST_VALID_INFO_PASSED); |
|
|
|
break; |
|
|
|
case FIRST_INSPECTED: |
|
|
|
count = countPurchase.applyAsLong(TenderStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES); |
|
|
|
firstInspectedCount = count; |
|
|
|
break; |
|
|
|
case PILOT_RUNNING: |
|
|
|
count = firstInspectedCount; |
|
|
|
// 初验试运行数量同步 |
|
|
|
count = countPurchase.applyAsLong(TenderStateChangeEvent.SUBMIT_FIRST_INSPECTED_FILES); |
|
|
|
break; |
|
|
|
case XCFHX_REVIEW: |
|
|
|
count = countPurchase.applyAsLong(XcfhxStateChangeEvent.XCFHX_APPLY_PASSED); |
|
|
|