...
|
...
|
@@ -384,7 +384,8 @@ func getDataForRankRnageRelation(companyid int64, rangeType int8, relationId []i |
|
|
)
|
|
|
qs := o.QueryTable(&models.UserCompany{}).
|
|
|
Filter("delete_at", 0).
|
|
|
Filter("company_id", companyid)
|
|
|
Filter("company_id", companyid).
|
|
|
Filter("enable", 1)
|
|
|
if len(relationId) > 0 {
|
|
|
qs = qs.Filter("id__in", relationId)
|
|
|
}
|
...
|
...
|
@@ -400,8 +401,7 @@ func getDataForRankRnageRelation(companyid int64, rangeType int8, relationId []i |
|
|
)
|
|
|
qs := o.QueryTable(&models.Department{}).
|
|
|
Filter("delete_at", 0).
|
|
|
Filter("company_id", companyid).
|
|
|
Filter("is_top", 0)
|
|
|
Filter("company_id", companyid)
|
|
|
if len(relationId) > 0 {
|
|
|
qs = qs.Filter("id__in", relationId)
|
|
|
}
|
...
|
...
|
|