|
@@ -578,8 +578,9 @@ func RefreshAllPredictCalculateTcz(edbInfoId, source, subSource int, fromEdbInfo
|
|
|
break
|
|
|
}
|
|
|
} else {
|
|
|
+ nextDateDay := preDate
|
|
|
+ preDateDay := preDate
|
|
|
for i := 0; i < 35; i++ {
|
|
|
- nextDateDay := preDate.AddDate(0, 0, 1)
|
|
|
nextDateDayStr := nextDateDay.Format(utils.FormatDate)
|
|
|
if findItem, ok := dataMap[nextDateDayStr]; ok { //上一年同期->下一个月找到
|
|
|
timestamp := currentDate.UnixNano() / 1e6
|
|
@@ -619,7 +620,6 @@ func RefreshAllPredictCalculateTcz(edbInfoId, source, subSource int, fromEdbInfo
|
|
|
}
|
|
|
break
|
|
|
} else {
|
|
|
- preDateDay := preDate.AddDate(0, 0, -1)
|
|
|
preDateDayStr := preDateDay.Format(utils.FormatDate)
|
|
|
if findItem, ok := dataMap[preDateDayStr]; ok { //上一年同期->上一个月找到
|
|
|
timestamp := currentDate.UnixNano() / 1e6
|
|
@@ -660,6 +660,8 @@ func RefreshAllPredictCalculateTcz(edbInfoId, source, subSource int, fromEdbInfo
|
|
|
break
|
|
|
}
|
|
|
}
|
|
|
+ nextDateDay = nextDateDay.AddDate(0, 0, 1)
|
|
|
+ preDateDay = preDateDay.AddDate(0, 0, -1)
|
|
|
}
|
|
|
}
|
|
|
}
|