Browse Source

工作台初验试运行阶段数量同步

tags/24080901
WendyYang 5 months ago
parent
commit
30a3404935
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java

+ 2
- 5
hz-pm-api/src/main/java/com/hz/pm/api/workbench/manage/WorkbenchManage.java View File

@@ -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);


Loading…
Cancel
Save