xuzhiheng преди 1 година
родител
ревизия
9a373796cd
променени са 1 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 9 3
      field_sync/task.go

+ 9 - 3
field_sync/task.go

@@ -172,7 +172,9 @@ func biddingAllTask(data []byte, mapInfo map[string]interface{}) {
 					if util.IntAll(compare["repeat"]) == 1 {
 						update["extracttype"] = -1
 						update["dataprocess"] = 7
-						update["repeat_id"] = compare["repeat_id"]
+						if compare["repeat_id"] != nil {
+							update["repeat_id"] = compare["repeat_id"]
+						}
 					} else {
 						update["extracttype"] = 1
 						update["dataprocess"] = 8
@@ -304,7 +306,9 @@ func doIndex(infos []map[string]interface{}, eMap map[string]map[string]interfac
 			if util.IntAll(compare["repeat"]) == 1 {
 				update["extracttype"] = -1
 				update["dataprocess"] = 7
-				update["repeat_id"] = compare["repeat_id"]
+				if compare["repeat_id"] != nil {
+					update["repeat_id"] = compare["repeat_id"]
+				}
 			} else {
 				update["extracttype"] = 1
 				update["dataprocess"] = 8
@@ -678,7 +682,9 @@ func taskinfo(id string) {
 	if util.IntAll((*extractM)["repeat"]) == 1 {
 		update["extracttype"] = -1
 		update["dataprocess"] = 7
-		update["repeat_id"] = (*extractM)["repeat_id"]
+		if (*extractM)["repeat_id"] != nil {
+			update["repeat_id"] = (*extractM)["repeat_id"]
+		}
 	} else {
 		update["extracttype"] = 1
 		update["dataprocess"] = 8