|
@@ -731,7 +731,7 @@ func BarChartData(mappingList []*chartEdbMappingModel.ChartEdbInfoMapping, edbDa
|
|
|
err = tmpErr
|
|
|
return
|
|
|
}
|
|
|
- if utils.GetTimeSubDay(currDateTime, findDateTime) >= 5 {
|
|
|
+ if currDateTime.Equal(findDateTime) || currDateTime.Before(findDateTime) {
|
|
|
findDate = dataList[i].DataTime
|
|
|
break
|
|
|
}
|
|
@@ -824,7 +824,7 @@ func BarChartData(mappingList []*chartEdbMappingModel.ChartEdbInfoMapping, edbDa
|
|
|
err = tmpErr
|
|
|
return
|
|
|
}
|
|
|
- if utils.GetTimeSubDay(currDateTime, findDateTime) >= 5 {
|
|
|
+ if currDateTime.Equal(findDateTime) || currDateTime.Before(findDateTime) {
|
|
|
findDate = dataList[i].DataTime
|
|
|
break
|
|
|
}
|