Przeglądaj źródła

Merge branch 'dev3.4' of http://192.168.3.207:10080/qmx/jy-data-extract into dev3.4

apple 5 lat temu
rodzic
commit
26185f2159

+ 1 - 1
udpcreateindex/src/bidingpurchasing.go

@@ -37,7 +37,7 @@ func biddingPurchaingTask(q map[string]interface{}) {
 	i := 0
 	for tmp := make(map[string]interface{}); query.Next(tmp); i = i + 1 {
 		n++
-		if util.IntAll(tmp["extracttype"]) == -1 { //重复数据不生索引
+		if util.IntAll(tmp["extracttype"]) == -1 || util.IntAll(tmp["dataging"]) == 1 { //重复数据不生索引
 			tmp = make(map[string]interface{})
 			continue
 		}

+ 11 - 0
udpcreateindex/src/task.go

@@ -54,3 +54,14 @@ func task_qyxyindex() {
 	q := map[string]interface{}{}
 	qyxyTask(q)
 }
+
+// func crontab() {
+// 	defer qutil.Catch()
+// 	q := map[string]interface{}{
+// 		"_id": map[string]interface{}{
+// 			"$gte": qutil.StringTOBsonId("5e344f0b50b5ea296ed0cfbd"), //2020-02-01
+// 			"$lte": qutil.StringTOBsonId("5e9f1880f2c1a7850ba43979"), //2020-04-22
+// 		},
+// 	}
+// 	site_attach_text(q)
+// }