|
@@ -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))
|