Explorar o código

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

王浩 hai 7 meses
pai
achega
d58c7b1e30
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      clueSync/kc.go

+ 1 - 1
clueSync/kc.go

@@ -663,7 +663,7 @@ func refundAuto() {
 								vip_endtimes, _ := time.ParseInLocation(date.Date_Full_Layout, vip_endtime, time.Local)
 								//查询申请保护时间
 								renewalTime := time.Time{}
-								timeData := TiDb.SelectBySql(`select  max(createtime) as createtime from   dwd_f_crm_clue_change_record   where   clue_id =  ? `, clueId)
+								timeData := TiDb.SelectBySql(`select  max(createtime) as createtime from   dwd_f_crm_clue_change_record   where   clue_id =  ?  and  change_type="申请续费保护"`, clueId)
 								if timeData != nil && len(*timeData) > 0 {
 									renewalTime, _ = time.ParseInLocation(date.Date_Full_Layout, gconv.String((*timeData)[0]["createtime"]), time.Local)
 								}