|
@@ -1073,6 +1073,9 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
|
|
|
endDateTime, _ := time.Parse(utils.FormatDate, v.EndDate)
|
|
|
startDate = endDateTime.UnixNano() / 1e6
|
|
|
}
|
|
|
+ if startDate < 0 {
|
|
|
+ startDate = time.Now().AddDate(-4, 0, 0).UnixNano() / 1e6
|
|
|
+ }
|
|
|
for {
|
|
|
paramMap["pageNum"] = pageIndex
|
|
|
paramMap["projectQuotaId"] = v.ProjectQuotaId
|
|
@@ -1172,7 +1175,7 @@ func GetLzSurveyProductData(cont context.Context) (err error) {
|
|
|
return err
|
|
|
}
|
|
|
}
|
|
|
- time.Sleep(2*time.Second)
|
|
|
+ time.Sleep(2 * time.Second)
|
|
|
}
|
|
|
return
|
|
|
}
|