wangkaiyue 6 months ago
parent
commit
7bab7c2083
1 changed files with 5 additions and 5 deletions
  1. 5 5
      src/jfw/modules/bigmember/src/entity/followEnterprise.go

+ 5 - 5
src/jfw/modules/bigmember/src/entity/followEnterprise.go

@@ -166,11 +166,11 @@ func (this *EntFollow) GetEntFollowList(pNum, pSize int, match, groups string) (
 
 
 		var (
 		var (
 			enCodeGroups []string
 			enCodeGroups []string
+			has          = true
 		)
 		)
-
 		if len(groupIds) > 0 {
 		if len(groupIds) > 0 {
+			has = false
 			var (
 			var (
-				has    = false
 				groups = strings.Split(gconv.String(item["gs"]), ",")
 				groups = strings.Split(gconv.String(item["gs"]), ",")
 			)
 			)
 			for _, group := range groups {
 			for _, group := range groups {
@@ -181,9 +181,9 @@ func (this *EntFollow) GetEntFollowList(pNum, pSize int, match, groups string) (
 					}
 					}
 				}
 				}
 			}
 			}
-			if !has {
-				continue
-			}
+		}
+		if !has {
+			continue
 		}
 		}
 		entId := qutil.ObjToString(item["s_entId"])
 		entId := qutil.ObjToString(item["s_entId"])
 		if entId == "" { //dev3.6.2 前关注企业未存入企业id
 		if entId == "" { //dev3.6.2 前关注企业未存入企业id