|
@@ -14,7 +14,7 @@ import (
|
|
|
)
|
|
|
|
|
|
// 将表格信息转化成指标数据
|
|
|
-func GetBalanceExcelData(excelDetail *excelModel.ExcelInfo) (newDataMap map[int]map[int]request.MixedTableCellDataReq, allRows, allCols int, err error, errMsg string) {
|
|
|
+func GetBalanceExcelData(excelDetail *excelModel.ExcelInfo, lang string) (newDataMap map[int]map[int]request.MixedTableCellDataReq, allRows, allCols int, err error, errMsg string) {
|
|
|
var result request.MixedTableReq
|
|
|
err = json.Unmarshal([]byte(excelDetail.Content), &result)
|
|
|
if err != nil {
|
|
@@ -48,8 +48,8 @@ func GetBalanceExcelData(excelDetail *excelModel.ExcelInfo) (newDataMap map[int]
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-func GetBalanceExcelChartList(excelInfo *excelModel.ExcelInfo) (list []*data_manage.ChartInfoView, mappingListMap map[int][]*excelModel.ExcelChartEdb, dataListMap map[int][]*data_manage.EdbDataList, err error, errMsg string) {
|
|
|
- newExcelDataMap, excelAllRows, excelAllCols, err, errMsg := GetBalanceExcelData(excelInfo)
|
|
|
+func GetBalanceExcelChartList(excelInfo *excelModel.ExcelInfo, lang string) (list []*data_manage.ChartInfoView, mappingListMap map[int][]*excelModel.ExcelChartEdb, dataListMap map[int][]*data_manage.EdbDataList, err error, errMsg string) {
|
|
|
+ newExcelDataMap, excelAllRows, excelAllCols, err, errMsg := GetBalanceExcelData(excelInfo, lang)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|