Selaa lähdekoodia

update

add_mode
DengBiao 1 vuosi sitten
vanhempi
commit
69052b0a33
2 muutettua tiedostoa jossa 8 lisäystä ja 4 poistoa
  1. +1
    -0
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go
  2. +7
    -4
      app/admin/svc/enterprise_manage/svc_self_support_for_school.go

+ 1
- 0
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go Näytä tiedosto

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


+ 7
- 4
app/admin/svc/enterprise_manage/svc_self_support_for_school.go Näytä tiedosto

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


Ladataan…
Peruuta
Tallenna