From 4b9f87d2a06bb838321b69de36a6e52c954b42ff Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 3 Nov 2023 11:08:59 +0800 Subject: [PATCH] update --- app/admin/md/md_enterprise_manage.go | 1 + app/admin/svc/enterprise_manage/svc_self_support_for_school.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/admin/md/md_enterprise_manage.go b/app/admin/md/md_enterprise_manage.go index 6e5f631..e2bab6c 100644 --- a/app/admin/md/md_enterprise_manage.go +++ b/app/admin/md/md_enterprise_manage.go @@ -367,6 +367,7 @@ type SelfSupportForSchoolStudentUpdateReq struct { EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"` UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"` IdNo string `json:"id_no" label:"身份证号"` + CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"` Name string `json:"name" label:"姓名"` GradeId int `json:"grade_id" label:"年级id"` ClassId int `json:"class_id" label:"班级id"` diff --git a/app/admin/svc/enterprise_manage/svc_self_support_for_school.go b/app/admin/svc/enterprise_manage/svc_self_support_for_school.go index 8c185e1..5916131 100644 --- a/app/admin/svc/enterprise_manage/svc_self_support_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_self_support_for_school.go @@ -377,8 +377,9 @@ func SelfSupportForSchoolStudentUpdate(req md.SelfSupportForSchoolStudentUpdateR return errors.New("未查询到对应记录") } userIdentity.IdNo = req.IdNo + userIdentity.CertType = req.CertType userIdentity.Name = req.Name - _, err = userIdentityDb.UserIdentityUpdate(req.UserIdentityId, userIdentity, "id_no", "name") + _, err = userIdentityDb.UserIdentityUpdate(req.UserIdentityId, userIdentity, "id_no", "name", "cert_type") if err != nil { return }