|
@@ -32,7 +32,7 @@ func GetValidProjectByInfoId(infoIds []string) *[]map[string]interface{} {
|
|
|
}
|
|
|
nowTime := time.Now().Unix()
|
|
|
query := `{"_source":["_id","list.infoid"],"query": {"bool": {"must": [{"terms": {"list.infoid": ["` + strings.Join(infoIds, "\",\"") + `"]}},
|
|
|
- {"bool": {"should": [{"range": {"bidopentime": {"gte": ` + fmt.Sprint(nowTime) + `}}},
|
|
|
+ {"bool": {"should": [{"range": {"bidendtime": {"gte": ` + fmt.Sprint(nowTime) + `}}},
|
|
|
{
|
|
|
"bool": {
|
|
|
"must_not": [
|
|
@@ -40,7 +40,7 @@ func GetValidProjectByInfoId(infoIds []string) *[]map[string]interface{} {
|
|
|
"constant_score": {
|
|
|
"filter": {
|
|
|
"exists": {
|
|
|
- "field": "bidopentime"
|
|
|
+ "field": "bidendtime"
|
|
|
}
|
|
|
}
|
|
|
}
|