|
@@ -562,7 +562,8 @@ func RefreshAllCalculateBp(edbInfoId, source int, fromEdbInfo *EdbInfo, edbCode,
|
|
|
}
|
|
|
} else {
|
|
|
for _, v := range dateArr { //如果计算指标第一条数据的开始时间 晚于 来源指标的第一条开始时间,那么需要对两个时间之间的计算指标数据做 新增处理
|
|
|
- if v == firstExistDataTimeStr {
|
|
|
+ vDataTime, _ := time.Parse(utils.FormatDate, v) //当前日期(time类型)
|
|
|
+ if firstExistDataTime.Equal(vDataTime) || firstExistDataTime.Before(vDataTime) {
|
|
|
if tmpLastValue, ok := fromDataMap[v]; ok { //来源指标当天的数据
|
|
|
lastValue = tmpLastValue
|
|
|
lastValueStr = decimal.NewFromFloat(lastValue).String()
|