archive ile

dev-tmp1
luotaiqian 2026-08-28 16:04:44 +08:00
parent 36a4a2d853
commit de1a164f54
1 changed files with 2 additions and 4 deletions

View File

@ -20,6 +20,7 @@ import org.qinan.safetyeval.domain.gateway.SafetyMessageGateway;
import org.qinan.safetyeval.domain.query.EvalProjectQuery; import org.qinan.safetyeval.domain.query.EvalProjectQuery;
import org.qinan.safetyeval.domain.query.PageResult; import org.qinan.safetyeval.domain.query.PageResult;
import org.qinan.safetyeval.domain.query.SafetyMessageQuery; import org.qinan.safetyeval.domain.query.SafetyMessageQuery;
import org.qinan.safetyeval.infrastructure.adapter.ThreadLocalUserInfoAdapter;
import org.qinan.safetyeval.infrastructure.support.InstitutionOrgSupport; import org.qinan.safetyeval.infrastructure.support.InstitutionOrgSupport;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Lazy;
@ -80,10 +81,7 @@ public class InstitutionDashboardExecutor implements InstitutionDashboardApi {
@Override @Override
public SingleResponse<InstitutionDashboardProjectNodeStatsCO> projectNodeStats() { public SingleResponse<InstitutionDashboardProjectNodeStatsCO> projectNodeStats() {
Long orgId = institutionOrgSupport.resolveCurrentOrgIdByUserId(); Long orgId = ThreadLocalUserInfoAdapter.getOrgId();
if (orgId == null) {
return SingleResponse.success(new InstitutionDashboardProjectNodeStatsCO());
}
List<EvalProjectEntity> projects = listOrgProjects(orgId); List<EvalProjectEntity> projects = listOrgProjects(orgId);
int total = projects.size(); int total = projects.size();