|
@@ -414,7 +414,7 @@ func (s *subscribePush) inactiveQuery(spqp *SubPushQueryParam, bsp *ViewConditio
|
|
|
list = elastic.Get("bidding", "bidding", fmt.Sprintf(query, strings.Join(spqp.SelectInfoIds, `","`), len(spqp.SelectInfoIds)))
|
|
|
count = gconv.Int64(len(*list))
|
|
|
} else {
|
|
|
- if len(bsp.Keyword) == 0 {
|
|
|
+ if len(bsp.Keyword) == 0 || spqp.PageNum*spqp.PageSize > 500 {
|
|
|
return []*bxsubscribe.SubscribeInfo{}, int64(0)
|
|
|
}
|
|
|
//通过条件查询
|
|
@@ -441,8 +441,8 @@ func (s *subscribePush) inactiveQuery(spqp *SubPushQueryParam, bsp *ViewConditio
|
|
|
//list = elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSort, bidField, 0, 4500, 0, false)
|
|
|
count, list = elastic.GetWithCount(INDEX, TYPE, "", qstr)
|
|
|
}
|
|
|
- if count > 4500 {
|
|
|
- count = 4500
|
|
|
+ if count > 500 {
|
|
|
+ count = 500
|
|
|
}
|
|
|
log.Println(count, list)
|
|
|
//数据清洗
|