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