Przeglądaj źródła

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

王浩 7 miesięcy temu
rodzic
commit
d58c7b1e30
1 zmienionych plików z 1 dodań i 1 usunięć
  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)
 								}