Browse Source

企业类型判断

WH01243 2 years ago
parent
commit
10bc7087b8
1 changed files with 1 additions and 2 deletions
  1. 1 2
      jyBXSubscribe/rpc/model/push.go

+ 1 - 2
jyBXSubscribe/rpc/model/push.go

@@ -495,7 +495,7 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 		}
 		//关键词
 		find_in_set := []string{}
-		if spqp.PositionType == 0 {
+		if spqp.IsEnt {
 			if spqp.Key != "" {
 				for _, v := range strings.Split(spqp.Key, ",") {
 					find_in_set = append(find_in_set, fmt.Sprintf("find_in_set('%s',replace(replace(a.matchkeys,'+',','),' ',','))", v))
@@ -507,7 +507,6 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
 				}
 			}
 		} else {
-			find_in_set := []string{}
 			if spqp.Key != "" {
 				for _, v := range strings.Split(spqp.Key, ",") {
 					find_in_set = append(find_in_set, fmt.Sprintf("find_in_set('%s',replace(replace(a.matchkeys,'+',','),' ',','))", v))