|
@@ -328,6 +328,7 @@ func ProfitChartChartData(baseEdbInfo *data_manage.EdbInfo, baseDataListMap map[
|
|
|
|
|
|
|
|
|
tmpN := (currDate.Year()-findDateTime.Year())*12 + int(currDate.Month()-findDateTime.Month())
|
|
|
+ fmt.Println(tmpN)
|
|
|
if tmpN <= 0 {
|
|
|
continue
|
|
|
}
|
|
@@ -637,7 +638,7 @@ func handleProfitResultData(xDataListInit []data_manage.XData, baseEdbInfo *data
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- maxI := len(allEdbInfoIds)
|
|
|
+ maxI := 0
|
|
|
for _, yData := range newYDataList {
|
|
|
lenEdb := len(yData.XEdbInfoIdList)
|
|
|
for i := 0; i < lenEdb; i++ {
|
|
@@ -650,7 +651,7 @@ func handleProfitResultData(xDataListInit []data_manage.XData, baseEdbInfo *data
|
|
|
}
|
|
|
|
|
|
earliestDateTime = time.Date(earliestDateTime.Year(), earliestDateTime.Month(), 1, 0, 0, 0, 0, time.Local)
|
|
|
- xDataList = xDataList[0:maxI]
|
|
|
+ xDataList = xDataList[0 : maxI+1]
|
|
|
for yIndex, yData := range newYDataList {
|
|
|
if len(yData.XEdbInfoIdList) > maxI+1 {
|
|
|
newYDataList[yIndex].XEdbInfoIdList = yData.XEdbInfoIdList[0 : maxI+1]
|