Browse Source

邮件缺失时间处理

WH01243 3 months ago
parent
commit
d23d45896e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      clueSync/kc.go

+ 3 - 3
clueSync/kc.go

@@ -47,8 +47,8 @@ ORDER BY
 	b.final_price DESC `
 	sql = fmt.Sprintf(sql, strings.Join(productArr, ","), "9%", cfg.LastkcTime)
 	data := Mysql.SelectBySql(sql)
+	fmt.Println("客成查询到的数量:", len(*data))
 	customList := gconv.Strings(redis.Get("newother", "customList"))
-
 	if data != nil && *data != nil && len(*data) > 0 {
 		orderMap := map[string]map[string]interface{}{}
 		for _, v := range *data {
@@ -1441,7 +1441,7 @@ func FindPositionIdClueId(uid string) (int64, string, string) {
 		INNER JOIN   dwd_f_crm_personnel_management c   on c.ent_id =?  and    e.name=c.name 
 		inner  join dwd_d_crm_department_level_succbi  f  on   c.position_id=f.position_id
 	ORDER BY
-		b.service_endtime desc ,b.final_price DESC ,a.state,
+		b.service_endtime desc ,b.final_price DESC,
 			a.money desc `, strings.Join(personArr, ","), "9%", strings.Join(productArr, ","))
 	clueData := TiDb.SelectBySql(querySql, db.EntId)
 	if clueData == nil || len(*clueData) == 0 {
@@ -1500,7 +1500,7 @@ func FindSaleRecord(orderCode string) (dept string, positionId int64, position s
 		SELECT DISTINCT
 			a.saler_dept,
 			a.saler_name,
-			b.phone ,	a.state,
+			b.phone,
 			a.money
 		FROM
 			order_sale_record a