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,