|
@@ -298,9 +298,11 @@ func fillMappingChartInfo(req residual_analysis_model.ResidualAnalysisReq, edbIn
|
|
|
// 从最早时间开始,补充时间为自然日
|
|
|
for utils.IsMoreThanOneDay(beforeIndexData.DataTime, afterIndexData.DataTime) {
|
|
|
// 创建补充数据
|
|
|
+ nextDay := utils.GetNextDay(beforeIndexData.DataTime)
|
|
|
+ toTime := utils.StringToTime(nextDay)
|
|
|
replenishIndexData := data_manage.EdbDataList{
|
|
|
- DataTime: utils.GetNextDay(beforeIndexData.DataTime), // 计算下一个自然日
|
|
|
- DataTimestamp: time.Now().UnixMilli(),
|
|
|
+ DataTime: nextDay, // 计算下一个自然日
|
|
|
+ DataTimestamp: toTime.UnixMilli(),
|
|
|
Value: beforeIndexData.Value, // 可以选择使用前一天的值,或者其他逻辑来计算值
|
|
|
}
|
|
|
|