Browse Source

feat:修改

duxin 2 years ago
parent
commit
09ef9cbdc0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      jyBXSubscribe/rpc/model/distributor.go

+ 2 - 2
jyBXSubscribe/rpc/model/distributor.go

@@ -60,8 +60,8 @@ func Distributor(region []string, entId, entUserId int) []*User {
 			if rules != nil && len(*rules) > 0 {
 				if len(*rules) > 1 { //多条规则 查询优先级最高的规则
 					//获取部门优先级
-					var ids = []int{entInfo.Dept.Id}
-					departSort(&ids, entInfo.Dept.Id)
+					var ids = []int{v.Dept_id}
+					departSort(&ids, v.Dept_id)
 					Reverse(ids)
 					for _, v1 := range ids {
 						for _, v2 := range *rules {