|
@@ -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
|