chart_info_interface.go 1.5 KB

12345678910111213141516171819202122232425262728
  1. package data
  2. import "eta/eta_mobile/models/data_manage"
  3. type ChartInfoDataShow interface {
  4. GetEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate string, mappingList []*data_manage.ChartEdbInfoMapping, seasonExtraConfig string) (edbDataListMap map[int][]*data_manage.EdbDataList, edbList []*data_manage.ChartEdbInfoMapping, err error)
  5. }
  6. type BaseChartInfoDataShow struct {
  7. }
  8. // GetEdbDataMapList 获取指标最后的基础数据
  9. func (e *BaseChartInfoDataShow) GetEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate string, mappingList []*data_manage.ChartEdbInfoMapping, seasonExtraConfig string) (edbDataListMap map[int][]*data_manage.EdbDataList, edbList []*data_manage.ChartEdbInfoMapping, err error) {
  10. // 指标对应的所有数据
  11. edbDataListMap, edbList, err = GetEdbDataMapList(chartInfoId, chartType, calendar, startDate, endDate, mappingList, seasonExtraConfig)
  12. return
  13. }
  14. type ExcelChartInfoDataShow struct {
  15. DataListMap map[int][]*data_manage.EdbDataList
  16. }
  17. // GetEdbDataMapList 获取指标最后的基础数据
  18. func (e *ExcelChartInfoDataShow) GetEdbDataMapList(chartInfoId, chartType int, calendar, startDate, endDate string, mappingList []*data_manage.ChartEdbInfoMapping, seasonExtraConfig string) (edbDataListMap map[int][]*data_manage.EdbDataList, edbList []*data_manage.ChartEdbInfoMapping, err error) {
  19. // 指标对应的所有数据
  20. edbDataListMap, edbList, err = GetBalanceExcelEdbDataMapList(chartInfoId, chartType, calendar, startDate, endDate, mappingList, seasonExtraConfig, e.DataListMap)
  21. return
  22. }