Ver código fonte

update

add_mode
DengBiao 1 ano atrás
pai
commit
3879057df1
2 arquivos alterados com 3 adições e 0 exclusões
  1. +1
    -0
      app/customer/hdl/hdl_user.go
  2. +2
    -0
      app/db/db_class_with_user.go

+ 1
- 0
app/customer/hdl/hdl_user.go Ver arquivo

@@ -43,6 +43,7 @@ func UserInfo(c *gin.Context) {
if data != nil {
tmp["grade"] = data.Grade
tmp["class"] = data.Class
tmp["period"] = data.Period
}
}



+ 2
- 0
app/db/db_class_with_user.go Ver arquivo

@@ -12,6 +12,7 @@ type ClassWithUser struct {
model2.UserIdentity `xorm:"extends"`
model2.Class `xorm:"extends"`
model2.Grade `xorm:"extends"`
model2.Period `xorm:"extends"`
model2.Enterprise `xorm:"extends"`
}

@@ -33,6 +34,7 @@ func (classWithUserDb *ClassWithUserDb) GetInfoByUserIdentityId(userIdentityId i
Join("LEFT", "user_identity", "class_with_user.user_identity_id = user_identity.id").
Join("LEFT", "class", "class_with_user.class_id = class.id").
Join("LEFT", "grade", "class.grade_id = grade.id").
Join("LEFT", "period", "grade.period_id = period.id").
Join("LEFT", "enterprise", "grade.enterprise_id = enterprise.id").
Get(m)
if err != nil {


Carregando…
Cancelar
Salvar