From f6ef635720284cf7944e83f2d48ff46eae22bbdb Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 21 Dec 2023 11:04:49 +0800 Subject: [PATCH] update --- .../svc/enterprise_manage/svc_self_support_for_school.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/svc/enterprise_manage/svc_self_support_for_school.go b/app/admin/svc/enterprise_manage/svc_self_support_for_school.go index 3b2e22c..4766b67 100644 --- a/app/admin/svc/enterprise_manage/svc_self_support_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_self_support_for_school.go @@ -416,8 +416,8 @@ func SelfSupportForSchoolStudentUpdate(req md.SelfSupportForSchoolStudentUpdateR now := time.Now() selfSupportForSchoolInfoDb := db.SelfSupportForSchoolInfoDb{} selfSupportForSchoolInfoDb.Set(req.EnterpriseId) - selfSupportForSchoolInfo, err := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo() - if err != nil { + selfSupportForSchoolInfo, err1 := selfSupportForSchoolInfoDb.GetSelfSupportForSchoolInfo() + if err1 != nil { return } if selfSupportForSchoolInfo == nil { @@ -438,7 +438,7 @@ func SelfSupportForSchoolStudentUpdate(req md.SelfSupportForSchoolStudentUpdateR 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 { return err1 }