xuzhiheng 1 年之前
父節點
當前提交
da26ce9713
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      clueSync/everything.go

+ 1 - 1
clueSync/everything.go

@@ -433,7 +433,7 @@ func bigCustomer() {
 			}
 		}
 	}
-	orderData := Mysql.SelectBySql(`SELECT * FROM dataexport_order WHERE create_time >= "` + time.Now().AddDate(0, 0, -5).Format(date.Date_Short_Layout) + " 00:00:00" + `" AND create_time < "` + time.Now().Format(date.Date_Short_Layout) + " 00:00:00" + `" AND (product_type = '历史数据' or product_type = '数据流量包') AND order_status IN (0,1) AND salesperson IS NULL AND is_backstage_order = 0`)
+	orderData := Mysql.SelectBySql(`SELECT * FROM dataexport_order WHERE create_time >= "` + time.Now().AddDate(0, 0, -1).Format(date.Date_Short_Layout) + " 00:00:00" + `" AND create_time < "` + time.Now().Format(date.Date_Short_Layout) + " 00:00:00" + `" AND (product_type = '历史数据' or product_type = '数据流量包') AND order_status IN (0,1) AND salesperson IS NULL AND is_backstage_order = 0`)
 	if orderData != nil && len(*orderData) > 0 {
 		for _, v := range *orderData {
 			phone := common.ObjToString(v["user_phone"])