From 69052b0a3363f4a17f77c8df08261bee7f91885f Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Thu, 24 Aug 2023 20:12:30 +0800 Subject: [PATCH] update --- .../svc_central_kitchen_for_school.go | 1 + .../enterprise_manage/svc_self_support_for_school.go | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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 9cb8ab5..eb70376 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 @@ -53,6 +53,7 @@ func CentralKitchenForSchoolUserUpdate(req md.CentralKitchenForSchoolUserUpdateR Kind: enum2.UserIdentityKindForCommon, Identity: enum2.UserIdentityForCentralKitchenForTeacher, EnterpriseId: req.EnterpriseId, + State: enum2.UserIdentityStateForNormal, Memo: "", CreateAt: now.Format("2006-01-02 15:04:05"), UpdateAt: now.Format("2006-01-02 15:04:05"), 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 1e8e1bb..a993aad 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 @@ -60,7 +60,7 @@ func SelfSupportForSchoolUserUpdate(req md.SelfSupportForSchoolUserUpdateReq) (e Name: v.Name, IdNo: v.IdNo, Kind: enum2.UserIdentityKindForCommon, - Identity: enum2.UserIdentityForCentralKitchenForTeacher, + Identity: enum2.UserIdentityForSelfSupportForTeacher, EnterpriseId: req.EnterpriseId, Memo: "", CreateAt: now.Format("2006-01-02 15:04:05"), @@ -80,7 +80,7 @@ func SelfSupportForSchoolUserUpdate(req md.SelfSupportForSchoolUserUpdateReq) (e Name: v.Name, IdNo: v.IdNo, Kind: enum2.UserIdentityKindForWorker, - Identity: enum2.UserIdentityForCentralKitchenForWorker, + Identity: enum2.UserIdentityForSelfSupportForWorker, EnterpriseId: req.EnterpriseId, Memo: "", CreateAt: now.Format("2006-01-02 15:04:05"), @@ -98,7 +98,7 @@ func SelfSupportForSchoolUserUpdate(req md.SelfSupportForSchoolUserUpdateReq) (e Name: v.Name, IdNo: v.IdNo, Kind: enum2.UserIdentityKindForCommon, - Identity: enum2.UserIdentityForCentralKitchenForStudent, + Identity: enum2.UserIdentityForSelfSupportForStudent, EnterpriseId: req.EnterpriseId, Memo: "", CreateAt: now.Format("2006-01-02 15:04:05"), @@ -155,7 +155,10 @@ func SelfSupportForSchoolUserUpdate(req md.SelfSupportForSchoolUserUpdateReq) (e identity.Name = v.Name if v.ClassId == -1 { //TODO::为老师身份 - identity.Identity = enum2.UserIdentityForCentralKitchenForTeacher + identity.Identity = enum2.UserIdentityForSelfSupportForTeacher + } else if v.ClassId == -2 { + //TODO::为工作人员 + identity.Identity = enum2.UserIdentityForSelfSupportForWorker } else { _, err3 := classWithUserDb.ClassWithUserInsertBySession(session, &model.ClassWithUser{ UserIdentityId: v.UserIdentityId,