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