|
@@ -453,8 +453,12 @@ func BarChartData(mappingList []*chartEdbMappingModel.ChartEdbInfoMappingList, e
|
|
|
yNameEn = maxDate.Format(utils.FormatDate)
|
|
|
}
|
|
|
}
|
|
|
+ yDate := "0000-00-00"
|
|
|
+ if !maxDate.IsZero() {
|
|
|
+ yDate = maxDate.Format(utils.FormatDate)
|
|
|
+ }
|
|
|
yDataList = append(yDataList, chart_info.YData{
|
|
|
- Date: maxDate.Format(utils.FormatDate),
|
|
|
+ Date: yDate,
|
|
|
Value: findDataList,
|
|
|
Color: barChartInfoDate.Color,
|
|
|
Name: yName,
|