From e215d6852ee451b6da435b96ee14c8ca3744557a Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 9 Oct 2023 15:53:06 +0800 Subject: [PATCH] update --- app/admin/svc/svc_self_support_for_school.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/svc/svc_self_support_for_school.go b/app/admin/svc/svc_self_support_for_school.go index ba58d49..fda7941 100644 --- a/app/admin/svc/svc_self_support_for_school.go +++ b/app/admin/svc/svc_self_support_for_school.go @@ -22,11 +22,11 @@ func SelfSupportForSchoolInfo(enterpriseId int) (err error, resp md.SelfSupportF //2、统计 "教师"、 "学生"、 "班级" 数量 userIdentityDb := db.UserIdentityDb{} userIdentityDb.Set(0) - resp.StudentNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForCentralKitchenForStudent) + resp.StudentNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForSelfSupportForStudent) if err != nil { return } - resp.TeacherNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForCentralKitchenForTeacher) + resp.TeacherNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForSelfSupportForTeacher) if err != nil { return }