|
@@ -675,6 +675,10 @@ func handleNhccData(dataList []*EdbInfoSearchData, moveDay int) (newDataList []E
|
|
|
currDate := minDate.AddDate(0, 0, i)
|
|
|
tmpValue, ok := newDateMap[currDate]
|
|
|
if !ok {
|
|
|
+ // 万一没有数据,那么就过滤当次循环
|
|
|
+ if len(newDataList) <= 0 {
|
|
|
+ continue
|
|
|
+ }
|
|
|
//找不到数据,那么就用前面的数据吧
|
|
|
tmpValue = newDataList[len(newDataList)-1].Value
|
|
|
}
|