From 6d2943c0f254d694a8a5ddac26e3e946c9a24e84 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 20 Sep 2023 16:51:30 +0800 Subject: [PATCH] update --- app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go | 3 ++- .../svc/enterprise_manage/svc_central_kitchen_for_school.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go b/app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go index bb30095..25416ee 100644 --- a/app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go +++ b/app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go @@ -779,6 +779,7 @@ func SelfSupportForSchoolAddStudent(c *gin.Context) { } classWithUserDb := db.ClassWithUserDb{} + classWithUserDb.Set() _, err = classWithUserDb.ClassWithUserInsert(&model.ClassWithUser{ UserIdentityId: insertAffected, ClassId: req.ClassId, @@ -789,7 +790,7 @@ func SelfSupportForSchoolAddStudent(c *gin.Context) { e.OutErr(c, e.ERR_DB_ORM, err.Error()) return } - + //更新 self_support_for_user_face_info selfSupportForUserFaceInfoDb := db.SelfSupportForUserFaceInfoDb{} selfSupportForUserFaceInfoDb.Set(insertAffected) diff --git a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go index 9afdf1a..ecc8fab 100644 --- a/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go +++ b/app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go @@ -111,6 +111,7 @@ func CentralKitchenForSchoolUserUpdate(req md.CentralKitchenForSchoolUserUpdateR //TODO::为老师身份 identity.Identity = enum2.UserIdentityForCentralKitchenForTeacher } else { + identity.Identity = enum2.UserIdentityForCentralKitchenForStudent _, err3 := classWithUserDb.ClassWithUserInsertBySession(session, &model.ClassWithUser{ UserIdentityId: v.UserIdentityId, ClassId: v.ClassId,