|
@@ -496,14 +496,11 @@ func (s *subscribePush) getDatasFromMysql(spqp *SubPushQueryParam, starttime, en
|
|
|
//关键词
|
|
|
find_in_set := []string{}
|
|
|
if spqp.PositionType == 0 {
|
|
|
- if spqp.Item == "" {
|
|
|
- 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))
|
|
|
- }
|
|
|
- } else {
|
|
|
- for _, v := range strings.Split(spqp.Item, ",") {
|
|
|
- find_in_set = append(find_in_set, fmt.Sprintf("find_in_set('%s',replace(replace(a.matchitems,'+',','),' ',','))", v))
|
|
|
- }
|
|
|
+ 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))
|
|
|
+ }
|
|
|
+ for _, v := range strings.Split(spqp.Item, ",") {
|
|
|
+ find_in_set = append(find_in_set, fmt.Sprintf("find_in_set('%s',replace(replace(a.matchitems,'+',','),' ',','))", v))
|
|
|
}
|
|
|
} else {
|
|
|
if spqp.Key != "" {
|