Bläddra i källkod

update

add_mode
DengBiao 1 år sedan
förälder
incheckning
4b9f87d2a0
2 ändrade filer med 3 tillägg och 1 borttagningar
  1. +1
    -0
      app/admin/md/md_enterprise_manage.go
  2. +2
    -1
      app/admin/svc/enterprise_manage/svc_self_support_for_school.go

+ 1
- 0
app/admin/md/md_enterprise_manage.go Visa fil

@@ -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"`


+ 2
- 1
app/admin/svc/enterprise_manage/svc_self_support_for_school.go Visa fil

@@ -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
}


Laddar…
Avbryt
Spara