|
@@ -1851,6 +1851,9 @@ func (this *LineFeaturesChartInfoController) Detail() {
|
|
|
latestDateT, _ := time.Parse(utils.FormatDate, edbMapping.LatestDate)
|
|
|
maxDate = latestDateT
|
|
|
}
|
|
|
+ if chartInfo.ChartType == utils.CHART_TYPE_SEASON && chartInfo.DateType == utils.DateTypeNYears {
|
|
|
+ maxDate = time.Date(maxDate.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
startDate, endDate := utils.GetDateByDateTypeV2(chartInfo.DateType, chartInfo.StartDate, chartInfo.EndDate, chartInfo.StartYear, maxDate)
|
|
|
edbList, resultResp, err, errMsg = lineFeatureServ.GetStandardDeviationData(0, startDate, endDate, edbMapping, calculateValue)
|
|
|
case utils.CHART_SOURCE_LINE_FEATURE_PERCENTILE:
|
|
@@ -1866,6 +1869,9 @@ func (this *LineFeaturesChartInfoController) Detail() {
|
|
|
latestDateT, _ := time.Parse(utils.FormatDate, edbMapping.LatestDate)
|
|
|
maxDate = latestDateT
|
|
|
}
|
|
|
+ if chartInfo.ChartType == utils.CHART_TYPE_SEASON && chartInfo.DateType == utils.DateTypeNYears {
|
|
|
+ maxDate = time.Date(maxDate.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
startDate, endDate := utils.GetDateByDateTypeV2(chartInfo.DateType, chartInfo.StartDate, chartInfo.EndDate, chartInfo.StartYear, maxDate)
|
|
|
edbList, resultResp, err, errMsg = lineFeatureServ.GetPercentileData(0, startDate, endDate, edbMapping, percentileConfig.CalculateValue, percentileConfig.CalculateUnit, percentileConfig.PercentType)
|
|
|
case utils.CHART_SOURCE_LINE_FEATURE_FREQUENCY:
|
|
@@ -2480,6 +2486,9 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *data_manage.ChartInfoView, isCa
|
|
|
latestDateT, _ := time.Parse(utils.FormatDate, edbMapping.LatestDate)
|
|
|
maxDate = latestDateT
|
|
|
}
|
|
|
+ if chartInfo.ChartType == utils.CHART_TYPE_SEASON && chartInfo.DateType == utils.DateTypeNYears {
|
|
|
+ maxDate = time.Date(maxDate.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
startDate, endDate := utils.GetDateByDateTypeV2(chartInfo.DateType, chartInfo.StartDate, chartInfo.EndDate, chartInfo.StartYear, maxDate)
|
|
|
edbList, resultResp, err, msg = lineFeatureServ.GetStandardDeviationData(0, startDate, endDate, edbMapping, calculateValue)
|
|
|
case utils.CHART_SOURCE_LINE_FEATURE_PERCENTILE:
|
|
@@ -2495,6 +2504,9 @@ func GetChartInfoDetailFromUniqueCode(chartInfo *data_manage.ChartInfoView, isCa
|
|
|
latestDateT, _ := time.Parse(utils.FormatDate, edbMapping.LatestDate)
|
|
|
maxDate = latestDateT
|
|
|
}
|
|
|
+ if chartInfo.ChartType == utils.CHART_TYPE_SEASON && chartInfo.DateType == utils.DateTypeNYears {
|
|
|
+ maxDate = time.Date(maxDate.Year()+1, 1, 1, 0, 0, 0, 0, time.Local)
|
|
|
+ }
|
|
|
startDate, endDate := utils.GetDateByDateTypeV2(chartInfo.DateType, chartInfo.StartDate, chartInfo.EndDate, chartInfo.StartYear, maxDate)
|
|
|
edbList, resultResp, err, msg = lineFeatureServ.GetPercentileData(0, startDate, endDate, edbMapping, percentileConfig.CalculateValue, percentileConfig.CalculateUnit, percentileConfig.PercentType)
|
|
|
case utils.CHART_SOURCE_LINE_FEATURE_FREQUENCY:
|