hsun 1 năm trước cách đây
mục cha
commit
5f22bd70e9
1 tập tin đã thay đổi với 0 bổ sung15 xóa
  1. 0 15
      services/data/chart_info.go

+ 0 - 15
services/data/chart_info.go

@@ -255,21 +255,6 @@ func getEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate
 			} else {
 			} else {
 				startDateReal = startDate
 				startDateReal = startDate
 			}
 			}
-
-			// 预测指标的开始日期也要偏移
-			{
-				day, tmpErr := utils.GetDaysBetween2Date(utils.FormatDate, startDate, startDateReal)
-				if tmpErr != nil {
-					err = tmpErr
-					return
-				}
-				latestDateTime, tmpErr := time.ParseInLocation(utils.FormatDate, item.MoveLatestDate, time.Local)
-				if tmpErr != nil {
-					err = tmpErr
-					return
-				}
-				item.MoveLatestDate = latestDateTime.AddDate(0, 0, day).Format(utils.FormatDate)
-			}
 		}
 		}
 		//fmt.Println("line 1011 chart:", v.Source, v.EdbInfoId, startDateReal, endDate)
 		//fmt.Println("line 1011 chart:", v.Source, v.EdbInfoId, startDateReal, endDate)
 		calendarPreYear := 0
 		calendarPreYear := 0