소스 검색

update

add_mode
DengBiao 1 년 전
부모
커밋
69052b0a33
2개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

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


불러오는 중...
취소
저장