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