Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
6d2943c0f2
2 changed files with 3 additions and 1 deletions
  1. +2
    -1
      app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go
  2. +1
    -0
      app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go

+ 2
- 1
app/admin/hdl/enterprise_manage/hdl_self_support_for_school.go View File

@@ -779,6 +779,7 @@ func SelfSupportForSchoolAddStudent(c *gin.Context) {
} }


classWithUserDb := db.ClassWithUserDb{} classWithUserDb := db.ClassWithUserDb{}
classWithUserDb.Set()
_, err = classWithUserDb.ClassWithUserInsert(&model.ClassWithUser{ _, err = classWithUserDb.ClassWithUserInsert(&model.ClassWithUser{
UserIdentityId: insertAffected, UserIdentityId: insertAffected,
ClassId: req.ClassId, ClassId: req.ClassId,
@@ -789,7 +790,7 @@ func SelfSupportForSchoolAddStudent(c *gin.Context) {
e.OutErr(c, e.ERR_DB_ORM, err.Error()) e.OutErr(c, e.ERR_DB_ORM, err.Error())
return return
} }
//更新 self_support_for_user_face_info //更新 self_support_for_user_face_info
selfSupportForUserFaceInfoDb := db.SelfSupportForUserFaceInfoDb{} selfSupportForUserFaceInfoDb := db.SelfSupportForUserFaceInfoDb{}
selfSupportForUserFaceInfoDb.Set(insertAffected) selfSupportForUserFaceInfoDb.Set(insertAffected)


+ 1
- 0
app/admin/svc/enterprise_manage/svc_central_kitchen_for_school.go View File

@@ -111,6 +111,7 @@ func CentralKitchenForSchoolUserUpdate(req md.CentralKitchenForSchoolUserUpdateR
//TODO::为老师身份 //TODO::为老师身份
identity.Identity = enum2.UserIdentityForCentralKitchenForTeacher identity.Identity = enum2.UserIdentityForCentralKitchenForTeacher
} else { } else {
identity.Identity = enum2.UserIdentityForCentralKitchenForStudent
_, err3 := classWithUserDb.ClassWithUserInsertBySession(session, &model.ClassWithUser{ _, err3 := classWithUserDb.ClassWithUserInsertBySession(session, &model.ClassWithUser{
UserIdentityId: v.UserIdentityId, UserIdentityId: v.UserIdentityId,
ClassId: v.ClassId, ClassId: v.ClassId,


Loading…
Cancel
Save