xuzhiheng преди 2 години
родител
ревизия
79db62b7bf
променени са 2 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 3 2
      clueSync/autoTask.go
  2. 1 1
      telemarketingEtl/entity/dwd_f_crm_open_sea.go

+ 3 - 2
clueSync/autoTask.go

@@ -25,7 +25,7 @@ func autoTask() {
 			count++
 			currentTime := t.AddDate(0, 0, -count)
 			currentTime.Format(date.Date_Short_Layout)
-			if currentTime.Weekday() == time.Sunday || currentTime.Weekday() == time.Sunday {
+			if currentTime.Weekday() == time.Sunday || currentTime.Weekday() == time.Saturday {
 				isok := false
 				for k, v := range DateMap {
 					if currentTime.Format(date.Date_Short_Layout) == k && v == 2 {
@@ -65,7 +65,7 @@ func autoTask() {
 		intime := ""
 		sql += " AND a.comeintime <?"
 		nt := t.AddDate(0, 0, -statusMap[trailstatus])
-		intime = nt.Format(date.Date_Short_Layout) + " 00:00:00"
+		intime = nt.Format(date.Date_Full_Layout)
 		argsSelect = append(argsSelect, intime)
 		log.Println(sql)
 		log.Println(argsSelect)
@@ -84,6 +84,7 @@ func autoTask() {
 					args2 = append(args2, intime)
 					args2 = append(args2, position_id)
 				}
+				log.Println("intime", intime, position_id, sql2)
 				//保留未跟进线索
 				// if c1, c2 := TiDb.CountBySql(sql1, clueId), TiDb.CountBySql(sql2, args2...); (c1 != 0 && c2 > 0) || out_task_status == 1 {
 				// 	log.Println("不满足线索过滤", clueId)

+ 1 - 1
telemarketingEtl/entity/dwd_f_crm_open_sea.go

@@ -496,7 +496,7 @@ func ReturnOpenSea() {
 			count++
 			currentTime := t.AddDate(0, 0, -count)
 			currentTime.Format(date.Date_Short_Layout)
-			if currentTime.Weekday() == time.Sunday || currentTime.Weekday() == time.Sunday {
+			if currentTime.Weekday() == time.Sunday || currentTime.Weekday() == time.Saturday {
 				isok := false
 				for k, v := range config.DateMap {
 					if currentTime.Format(date.Date_Short_Layout) == k && v == 2 {