Prechádzať zdrojové kódy

Merge branch 'dev_v1.5.34_wh' of jianyu/datatools into feature/v1.5.34

王浩 1 mesiac pred
rodič
commit
58ff46b861
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      clueSync/kc.go

+ 2 - 2
clueSync/kc.go

@@ -1067,7 +1067,7 @@ func refundAuto() {
 		}
 		return true
 	}, `select ent_id,clue_id,position_id,name,is_renewal_protection,company_name from dwd_f_csm_customer_info where is_transfer = 0`)
-	//}, `select ent_id,clue_id,position_id,name,is_renewal_protection,company_name from dwd_f_csm_customer_info where clue_id =1891766`)
+	//}, `select ent_id,clue_id,position_id,name,is_renewal_protection,company_name from dwd_f_csm_customer_info where clue_id =1892226`)
 
 	//移交电销提醒
 	for i, v := range mailData {
@@ -1444,7 +1444,7 @@ func FindPositionIdClueId(uid string) (int64, string, string) {
 		AND ( a.refund_status != 1 OR a.refund_status IS NULL ) 
 		AND b.service_starttime < "2099-01-01" 
 		AND b.product_type IN (%s ) 
-		AND ( b.service_type != 4 or  b.service_type  is  NULL OR ( b.service_type = 4 AND DATEDIFF( b.service_starttime, b.service_endtime )> 90 ) ) 
+		AND ( b.service_type != 4 or  b.service_type  is  NULL OR ( b.service_type = 4 AND TIMESTAMPDIFF(DAY, b.service_starttime, b.service_endtime )> 90 ) ) 
 		inner JOIN  jianyu.order_sale_record d on  b.order_code=d.ordercode and  d.state=1 
 		INNER JOIN jianyu.entniche_user e   on  d.ent_userId = e.id
 		INNER JOIN   dwd_f_crm_personnel_management c   on c.ent_id =?  and    e.name=c.name