Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
20ec2581c7
2 changed files with 8 additions and 7 deletions
  1. +7
    -6
      app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go
  2. +1
    -1
      app/admin/md/md_enterprise_manage.go

+ 7
- 6
app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go View File

@@ -919,8 +919,9 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
if info == nil { if info == nil {
selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{} selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{}
selfSupportForSchoolInfoDb.Set(enterpriseId) selfSupportForSchoolInfoDb.Set(enterpriseId)
selfSupportForSchoolInfo, err := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo()
if err != nil {
selfSupportForSchoolInfo, err1 := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo()
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return return
} }
if selfSupportForSchoolInfo == nil { if selfSupportForSchoolInfo == nil {
@@ -942,16 +943,16 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
CreateAt: now.Format("2006-01-02 15:04:05"), CreateAt: now.Format("2006-01-02 15:04:05"),
UpdateAt: now.Format("2006-01-02 15:04:05"), UpdateAt: now.Format("2006-01-02 15:04:05"),
} }
_, err1 := selfSupportForUserFaceInfoDb.SelfSupportForUserFaceInfoInsert(info)
_, err1 = selfSupportForUserFaceInfoDb.SelfSupportForUserFaceInfoInsert(info)
if err1 != nil { if err1 != nil {
e.OutErr(c, e.ERR, err1.Error()) e.OutErr(c, e.ERR, err1.Error())
return return
} }
} else { } else {
info.CollectFaceType = 1 info.CollectFaceType = 1
_, err = selfSupportForUserFaceInfoDb.SelfSupportForUserFaceInfoUpdate(info, "collect_face_type")
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
_, err1 := selfSupportForUserFaceInfoDb.SelfSupportForUserFaceInfoUpdate(info, "collect_face_type")
if err1 != nil {
e.OutErr(c, e.ERR_DB_ORM, err1.Error())
return return
} }
} }


+ 1
- 1
app/admin/md/md_enterprise_manage.go View File

@@ -42,7 +42,7 @@ type EnterpriseUserListByCentralKitchenForSchoolResp struct {
type CentralKitchenForSchoolUserUpdateReq struct { type CentralKitchenForSchoolUserUpdateReq struct {
EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"` EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
Uid int `json:"uid" binding:"required" label:"用户id"` Uid int `json:"uid" binding:"required" label:"用户id"`
Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
Nickname string `json:"nickname" label:"支付宝昵称"`
Phone string `json:"phone" binding:"required" label:"手机号"` Phone string `json:"phone" binding:"required" label:"手机号"`
BindUserIdentities []struct { BindUserIdentities []struct {
UserIdentityId int `json:"user_identity_id" label:"用户身份id"` UserIdentityId int `json:"user_identity_id" label:"用户身份id"`


Loading…
Cancel
Save