Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
e215d6852e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/admin/svc/svc_self_support_for_school.go

+ 2
- 2
app/admin/svc/svc_self_support_for_school.go View File

@@ -22,11 +22,11 @@ func SelfSupportForSchoolInfo(enterpriseId int) (err error, resp md.SelfSupportF
//2、统计 "教师"、 "学生"、 "班级" 数量 //2、统计 "教师"、 "学生"、 "班级" 数量
userIdentityDb := db.UserIdentityDb{} userIdentityDb := db.UserIdentityDb{}
userIdentityDb.Set(0) userIdentityDb.Set(0)
resp.StudentNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForCentralKitchenForStudent)
resp.StudentNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForSelfSupportForStudent)
if err != nil { if err != nil {
return return
} }
resp.TeacherNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForCentralKitchenForTeacher)
resp.TeacherNum, err = userIdentityDb.CountUserIdentityForEnterprise(enterpriseId, enum.UserIdentityForSelfSupportForTeacher)
if err != nil { if err != nil {
return return
} }


Loading…
Cancel
Save