Pārlūkot izejas kodu

fix:导入接口调整,支持多模板

Roc 7 mēneši atpakaļ
vecāks
revīzija
60db95dbba
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 2 2
      models/manual_edb.go
  2. 1 1
      services/data/manual.go

+ 2 - 2
models/manual_edb.go

@@ -235,14 +235,14 @@ func DelManualIndexByCodeList(codeList []string) (err error) {
 	return
 }
 
-// GetEdbinfoBySecNameList
+// GetEdbinfoListBySecNameList
 // @Description: 根据指标名称获取列表数据
 // @author: Roc
 // @datetime 2024-07-30 19:14:25
 // @param secNameList []string
 // @return item []*Edbinfo
 // @return err error
-func GetEdbinfoBySecNameList(secNameList []string) (item []*Edbinfo, err error) {
+func GetEdbinfoListBySecNameList(secNameList []string) (item []*Edbinfo, err error) {
 	num := len(secNameList)
 	if num <= 0 {
 		return

+ 1 - 1
services/data/manual.go

@@ -321,7 +321,7 @@ func ImportManualData(path string, sysUser *system.Admin) (successCount, failCou
 
 	{
 		// 获取指标信息
-		manualIndexList, tmpErr := models.GetEdbinfoBySecNameList(indexNameList)
+		manualIndexList, tmpErr := models.GetEdbinfoListBySecNameList(indexNameList)
 		if tmpErr != nil {
 			err = tmpErr
 			errMsg = "获取指标信息失败"