浏览代码

日志添加

WH01243 1 月之前
父节点
当前提交
34b0da8bda
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      clueSync/kc.go

+ 2 - 1
clueSync/kc.go

@@ -525,11 +525,12 @@ func kcAuto() {
 }
 }
 
 
 func ordersClue() {
 func ordersClue() {
-	log.Println("后台订单线索定时任务开始")
 	lastOrderClueId := cfg.LastOrderClueId
 	lastOrderClueId := cfg.LastOrderClueId
 	nowTime := time.Now().Format(date.Date_Full_Layout)
 	nowTime := time.Now().Format(date.Date_Full_Layout)
 	sql := fmt.Sprintf(`select order_code,order_status,is_backstage_order,pay_money,saleDep,salesperson,user_phone,create_person,saleMoney,user_id,product_type,company_name,autoUpdate from dataexport_order where autoUpdate >= "%s" order by autoUpdate asc`, lastOrderClueId)
 	sql := fmt.Sprintf(`select order_code,order_status,is_backstage_order,pay_money,saleDep,salesperson,user_phone,create_person,saleMoney,user_id,product_type,company_name,autoUpdate from dataexport_order where autoUpdate >= "%s" order by autoUpdate asc`, lastOrderClueId)
+	log.Println("后台订单线索定时任务开始:", sql)
 	data := Mysql.SelectBySql(sql)
 	data := Mysql.SelectBySql(sql)
+	log.Println("后台订单线索定时任务开始:", len(*data))
 	if data != nil && *data != nil && len(*data) > 0 {
 	if data != nil && *data != nil && len(*data) > 0 {
 		for _, v := range *data {
 		for _, v := range *data {
 			order_status := common.IntAll(v["order_status"])
 			order_status := common.IntAll(v["order_status"])