xuzhiheng 2 سال پیش
والد
کامیت
74afd5d076
2فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 0 3
      clueSync/autoTask.go
  2. 1 2
      telemarketingEtl/entity/dwd_f_crm_open_sea.go

+ 0 - 3
clueSync/autoTask.go

@@ -68,8 +68,6 @@ func autoTask() {
 		nt := t.AddDate(0, 0, -statusMap[trailstatus])
 		intime = nt.Format(date.Date_Full_Layout)
 		argsSelect = append(argsSelect, intime)
-		log.Println(sql)
-		log.Println(argsSelect)
 		//
 		TiDb.SelectByBath(100, func(l *[]map[string]interface{}) bool {
 			for _, v := range *l {
@@ -85,7 +83,6 @@ func autoTask() {
 					args2 = append(args2, intime)
 					args2 = append(args2, position_id)
 				}
-				log.Println("intime", intime, clueId, sql2)
 				//保留未跟进线索
 				// if c1, c2 := TiDb.CountBySql(sql1, clueId), TiDb.CountBySql(sql2, args2...); (c1 != 0 && c2 > 0) || out_task_status == 1 {
 				// 	log.Println("不满足线索过滤", clueId)

+ 1 - 2
telemarketingEtl/entity/dwd_f_crm_open_sea.go

@@ -495,7 +495,6 @@ func ReturnOpenSea() {
 		for {
 			count++
 			currentTime := t.AddDate(0, 0, -count)
-			currentTime.Format(date.Date_Short_Layout)
 			if currentTime.Weekday() == time.Sunday || currentTime.Weekday() == time.Saturday {
 				isok := false
 				for k, v := range config.DateMap {
@@ -521,7 +520,7 @@ func ReturnOpenSea() {
 				break
 			}
 		}
-		statusMap[status] = counts
+		statusMap[status] = count
 	}
 	//