|
@@ -1,6 +1,7 @@
|
|
package excel
|
|
package excel
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ "eta/eta_api/models/data_manage"
|
|
"eta/eta_api/utils"
|
|
"eta/eta_api/utils"
|
|
"fmt"
|
|
"fmt"
|
|
"github.com/beego/beego/v2/client/orm"
|
|
"github.com/beego/beego/v2/client/orm"
|
|
@@ -53,17 +54,6 @@ type MyExcelInfoList struct {
|
|
HaveOperaAuth bool `description:"是否有数据权限"`
|
|
HaveOperaAuth bool `description:"是否有数据权限"`
|
|
}
|
|
}
|
|
|
|
|
|
-type ExcelBaseInfo struct {
|
|
|
|
- ExcelInfoId int `orm:"column(excel_info_id);pk"`
|
|
|
|
- Source int `description:"表格来源,1:excel插件的表格,2:自定义表格,3:混合表格,4:自定义分析,默认:1"`
|
|
|
|
- ExcelType int `description:"表格类型,1:指标列,2:日期列,默认:1"`
|
|
|
|
- ExcelName string `description:"表格名称"`
|
|
|
|
- UniqueCode string `description:"表格唯一编码"`
|
|
|
|
- ExcelClassifyId int `description:"表格分类id"`
|
|
|
|
- SysUserId int `description:"操作人id"`
|
|
|
|
- SysUserRealName string `description:"操作人真实姓名"`
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// AddExcelInfo 新增表格
|
|
// AddExcelInfo 新增表格
|
|
func AddExcelInfo(excelInfo *ExcelInfo, excelEdbMappingList []*ExcelEdbMapping) (err error) {
|
|
func AddExcelInfo(excelInfo *ExcelInfo, excelEdbMappingList []*ExcelEdbMapping) (err error) {
|
|
o, err := orm.NewOrmUsingDB("data").Begin()
|
|
o, err := orm.NewOrmUsingDB("data").Begin()
|
|
@@ -636,7 +626,7 @@ func ModifyExcelInfoUserIdByOldUserId(oldUserIdList []int, userId int, userName
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
-func GetExcelBaseInfoByExcelInfoIdList(excelInfoIdList []int) (items []*ExcelBaseInfo, err error) {
|
|
|
|
|
|
+func GetExcelBaseInfoByExcelInfoIdList(excelInfoIdList []int) (items []*data_manage.ExcelBaseInfo, err error) {
|
|
num := len(excelInfoIdList)
|
|
num := len(excelInfoIdList)
|
|
if num <= 0 {
|
|
if num <= 0 {
|
|
return
|
|
return
|