fix(aihr): clarify pilot identity metric
This commit is contained in:
+5
-5
@@ -171,7 +171,7 @@ public class AihrPracticeSeedService {
|
||||
SELECT
|
||||
(SELECT COUNT(*) FROM aihr_practice_scenario s JOIN pilot_params p ON p.tenant_id = s.tenant_id
|
||||
WHERE s.position = '生活顾问' AND s.enabled = 1) AS scenario_count,
|
||||
(SELECT COUNT(DISTINCT ext_party_id) FROM safe_org) AS org_login_count,
|
||||
(SELECT COUNT(DISTINCT ext_party_id) FROM safe_org) AS org_identity_count,
|
||||
(SELECT COUNT(*) FROM pilot_org) AS pilot_people,
|
||||
(SELECT COUNT(DISTINCT o.project_code) FROM pilot_org po JOIN safe_org o ON o.ext_party_id = po.ext_party_id
|
||||
WHERE o.project_code IS NOT NULL AND o.project_code <> '') AS pilot_projects,
|
||||
@@ -1135,7 +1135,7 @@ public class AihrPracticeSeedService {
|
||||
try {
|
||||
metrics = jdbcTemplate.queryForObject(PILOT_METRICS_SQL, (rs, rowNum) -> new PilotReportMetrics(
|
||||
rs.getInt("scenario_count"),
|
||||
rs.getInt("org_login_count"),
|
||||
rs.getInt("org_identity_count"),
|
||||
rs.getInt("pilot_people"),
|
||||
rs.getInt("pilot_projects"),
|
||||
rs.getInt("training_count"),
|
||||
@@ -1159,7 +1159,7 @@ public class AihrPracticeSeedService {
|
||||
startDate.atStartOfDay(), endDate.plusDays(1).atStartOfDay());
|
||||
int pilotPeople = metrics.pilotPeople();
|
||||
int completedPeople = metrics.completedPeople();
|
||||
boolean scopeReady = metrics.orgLoginCount() >= 20
|
||||
boolean scopeReady = metrics.orgIdentityCount() >= 20
|
||||
&& pilotPeople >= 20
|
||||
&& metrics.pilotProjects() >= 1
|
||||
&& metrics.pilotProjects() <= 2;
|
||||
@@ -1175,7 +1175,7 @@ public class AihrPracticeSeedService {
|
||||
appendCsvRow(csv, "data_scope", "active_org_unique_identity");
|
||||
appendCsvRow(csv, "scenario_count", metrics.scenarioCount());
|
||||
appendCsvRow(csv, "scenario_count_target", 12);
|
||||
appendCsvRow(csv, "formal_org_login_count", metrics.orgLoginCount());
|
||||
appendCsvRow(csv, "formal_org_identity_count", metrics.orgIdentityCount());
|
||||
appendCsvRow(csv, "formal_pilot_people_count", pilotPeople);
|
||||
appendCsvRow(csv, "formal_pilot_people_target", 20);
|
||||
appendCsvRow(csv, "formal_pilot_project_count", metrics.pilotProjects());
|
||||
@@ -3828,7 +3828,7 @@ public class AihrPracticeSeedService {
|
||||
|
||||
private record PilotReportMetrics(
|
||||
int scenarioCount,
|
||||
int orgLoginCount,
|
||||
int orgIdentityCount,
|
||||
int pilotPeople,
|
||||
int pilotProjects,
|
||||
int trainingCount,
|
||||
|
||||
Reference in New Issue
Block a user