Jianghan 8 сар өмнө
parent
commit
9edc9010fd

+ 1 - 0
pushUnbinding/task/task.go

@@ -34,6 +34,7 @@ func (t *TaskInfo) Run() {
 func getBidInfo() {
 	query := `{"query": {"bool": {"must": [{"range": {"pici": {"gte": ` + fmt.Sprint(config.TaskConfig.Pici) + `,"lt": ` + fmt.Sprint(time.Now().Unix()) + `}}},{"bool": {"should": [{"terms": {"toptype": ["预告","招标","结果","其它"]}}],"minimum_should_match": 1}}]}},"_source": ["id","title","projectname","publishtime","buyer","area","pici"],"sort": [{"publishtime": "desc"}],"size": 1}`
 	countQ := `{"query": {"bool": {"must": [{"range": {"pici": {"gte": ` + util.ObjToString(config.TaskConfig.Pici) + `,"lt": ` + util.ObjToString(time.Now().Unix()) + `}}},{"bool": {"should": [{"terms": {"toptype": ["预告","招标","结果","其它"]}}],"minimum_should_match": 1}}]}}}`
+	logger.Info("countQ: ", countQ)
 	c, info := elastic.GetWithCount("bidding", "", countQ, query)
 	if c > 0 {
 		Count = int(c)