|
@@ -12,6 +12,7 @@ type ClassWithUser struct { |
|
|
model2.UserIdentity `xorm:"extends"` |
|
|
model2.UserIdentity `xorm:"extends"` |
|
|
model2.Class `xorm:"extends"` |
|
|
model2.Class `xorm:"extends"` |
|
|
model2.Grade `xorm:"extends"` |
|
|
model2.Grade `xorm:"extends"` |
|
|
|
|
|
model2.Period `xorm:"extends"` |
|
|
model2.Enterprise `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", "user_identity", "class_with_user.user_identity_id = user_identity.id"). |
|
|
Join("LEFT", "class", "class_with_user.class_id = class.id"). |
|
|
Join("LEFT", "class", "class_with_user.class_id = class.id"). |
|
|
Join("LEFT", "grade", "class.grade_id = grade.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"). |
|
|
Join("LEFT", "enterprise", "grade.enterprise_id = enterprise.id"). |
|
|
Get(m) |
|
|
Get(m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|