|
@@ -1330,7 +1330,7 @@ func (c *ExcelInfoController) GetExcelTableData() {
|
|
|
br.ErrMsg = "获取最新的数据失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- tableData, err = excel.GetTableDataByMixedTableData(newResult)
|
|
|
+ tableData, err = excel.GetTableDataByMixedTableData(newResult, true)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "转换成table失败,Err:" + err.Error()
|
|
@@ -1579,9 +1579,9 @@ func (c *ExcelInfoController) GetFirstEdbData() {
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|
|
|
br.Data = response.TableDataItem{
|
|
|
- EdbInfoId: edbInfoId,
|
|
|
- Data: dataList,
|
|
|
- ExcelSource: excelSource,
|
|
|
+ EdbInfoId: edbInfoId,
|
|
|
+ Data: dataList,
|
|
|
+ ExcelSource: excelSource,
|
|
|
ExcelSourceEn: excelSourceEn,
|
|
|
}
|
|
|
}
|
|
@@ -1658,9 +1658,9 @@ func (c *ExcelInfoController) GetOtherEdbData() {
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|
|
|
br.Data = response.TableDataItem{
|
|
|
- EdbInfoId: req.EdbInfoId,
|
|
|
- Data: dataList,
|
|
|
- ExcelSource: excelSource,
|
|
|
+ EdbInfoId: req.EdbInfoId,
|
|
|
+ Data: dataList,
|
|
|
+ ExcelSource: excelSource,
|
|
|
ExcelSourceEn: excelSourceEn,
|
|
|
}
|
|
|
}
|
|
@@ -2189,7 +2189,7 @@ func (c *ExcelInfoController) Download() {
|
|
|
br.ErrMsg = "获取最新的数据失败,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
- tableData, err = excel.GetTableDataByMixedTableData(newResult)
|
|
|
+ tableData, err = excel.GetTableDataByMixedTableData(newResult, false)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = "转换成table失败,Err:" + err.Error()
|
|
@@ -2584,7 +2584,6 @@ func (c *ExcelInfoController) GetBatchChartRefreshResult() {
|
|
|
br.Success = true
|
|
|
}
|
|
|
|
|
|
-
|
|
|
// GetBatchChartRefreshResult
|
|
|
// @Title 获取批量刷新表格结果
|
|
|
// @Description 获取批量刷新表格结果
|
|
@@ -2605,7 +2604,7 @@ func (c *ExcelInfoController) GetEdbSource() {
|
|
|
return
|
|
|
}
|
|
|
edbInfoId, _ := c.GetInt("EdbInfoId")
|
|
|
- if edbInfoId <= 0 {
|
|
|
+ if edbInfoId <= 0 {
|
|
|
br.Msg = "请选择指标"
|
|
|
br.ErrMsg = "请选择指标"
|
|
|
br.IsSendEmail = false
|
|
@@ -2621,7 +2620,7 @@ func (c *ExcelInfoController) GetEdbSource() {
|
|
|
excelSourceEn := strings.Join(sourceNameEnList, ",")
|
|
|
|
|
|
var resp struct {
|
|
|
- ExcelSource string `description:"表格来源"`
|
|
|
+ ExcelSource string `description:"表格来源"`
|
|
|
ExcelSourceEn string `description:"表格来源(英文)"`
|
|
|
}
|
|
|
|
|
@@ -2631,4 +2630,4 @@ func (c *ExcelInfoController) GetEdbSource() {
|
|
|
br.Data = resp
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
-}
|
|
|
+}
|