소스 검색

update

add_mode
DengBiao 1 년 전
부모
커밋
20ec2581c7
2개의 변경된 파일8개의 추가작업 그리고 7개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

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


불러오는 중...
취소
저장