|
@@ -162,6 +162,10 @@ func HandleEiaSteoData(dataList map[string]interface{}, indexInfo *BaseFromEiaSt
|
|
|
err = tmpErr
|
|
|
return
|
|
|
}
|
|
|
+ // 产品要求每个月的最后一天
|
|
|
+ date = lastDayOfMonth(currDate.Year(), currDate.Month())
|
|
|
+ currDate, _ = time.ParseInLocation(utils.FormatDate, date, time.Local)
|
|
|
+
|
|
|
initDate := time.Date(2010, time.January, 1, 0, 0, 0, 0, time.Local)
|
|
|
if currDate.Before(initDate) {
|
|
|
continue
|
|
@@ -177,9 +181,6 @@ func HandleEiaSteoData(dataList map[string]interface{}, indexInfo *BaseFromEiaSt
|
|
|
if currDate.Before(startDate) {
|
|
|
startDate = currDate
|
|
|
}
|
|
|
- // 产品要求每个月的最后一天
|
|
|
- date = lastDayOfMonth(currDate.Year(), currDate.Month())
|
|
|
- currDate, _ = time.ParseInLocation(utils.FormatDate, date, time.Local)
|
|
|
// date = currDate.Format(utils.FormatDate)
|
|
|
//fmt.Println("date:", date)
|
|
|
|