|
@@ -82,6 +82,7 @@ func GetChartInfoDetail(c *gin.Context) {
|
|
if dateType <= 0 {
|
|
if dateType <= 0 {
|
|
dateType = 3 // 默认同后台15年至今
|
|
dateType = 3 // 默认同后台15年至今
|
|
}
|
|
}
|
|
|
|
+
|
|
switch dateType {
|
|
switch dateType {
|
|
case 1:
|
|
case 1:
|
|
startDate = "2000-01-01"
|
|
startDate = "2000-01-01"
|
|
@@ -92,8 +93,13 @@ func GetChartInfoDetail(c *gin.Context) {
|
|
case 4:
|
|
case 4:
|
|
startDate = "2021-01-01"
|
|
startDate = "2021-01-01"
|
|
case 5:
|
|
case 5:
|
|
- startDate = startDate + "-01"
|
|
|
|
- endDate = endDate + "-01"
|
|
|
|
|
|
+ if startDate == "" && chartInfo.StartDate != "" {
|
|
|
|
+ startDate = chartInfo.StartDate
|
|
|
|
+ endDate = chartInfo.EndDate
|
|
|
|
+ } else {
|
|
|
|
+ startDate = startDate + "-01"
|
|
|
|
+ endDate = endDate + "-01"
|
|
|
|
+ }
|
|
case 6:
|
|
case 6:
|
|
startDate = startDate + "-01"
|
|
startDate = startDate + "-01"
|
|
case 7:
|
|
case 7:
|