Ver a proveniência

update

add_mode
DengBiao há 1 ano
ascendente
cometimento
20ec2581c7
2 ficheiros alterados com 8 adições e 7 eliminações
  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 Ver ficheiro

@@ -919,8 +919,9 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
if info == nil {
selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{}
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
}
if selfSupportForSchoolInfo == nil {
@@ -942,16 +943,16 @@ func SelfSupportForSchoolImportTeacher(c *gin.Context) {
CreateAt: 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 {
e.OutErr(c, e.ERR, err1.Error())
return
}
} else {
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
}
}


+ 1
- 1
app/admin/md/md_enterprise_manage.go Ver ficheiro

@@ -42,7 +42,7 @@ type EnterpriseUserListByCentralKitchenForSchoolResp struct {
type CentralKitchenForSchoolUserUpdateReq struct {
EnterpriseId int `json:"enterprise_id" 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:"手机号"`
BindUserIdentities []struct {
UserIdentityId int `json:"user_identity_id" label:"用户身份id"`


Carregando…
Cancelar
Guardar