Browse Source

fix:手工明细数据批量插入

Roc 7 months ago
parent
commit
97a97867fc
2 changed files with 0 additions and 14 deletions
  1. 0 13
      controllers/manual_edb.go
  2. 0 1
      models/target.go

+ 0 - 13
controllers/manual_edb.go

@@ -96,19 +96,6 @@ func (this *TargetController) EdbDetail() {
 		manualEdbInfo.DataList = dataList
 	}
 
-	// 查找是否加入到指标库
-	{
-		edbInfo, err := data_manage.GetEdbInfoByEdbCode(utils.DATA_SOURCE_MANUAL, manualEdbInfo.TradeCode)
-		if err != nil && err.Error() != utils.ErrNoRow() {
-			br.Msg = "获取失败"
-			br.ErrMsg = "获取失败,Err:" + err.Error()
-			return
-		}
-		if edbInfo != nil {
-			manualEdbInfo.EdbExist = 1
-		}
-	}
-
 	resp := models.TargetDetailResp{
 		Detail:       manualEdbInfo,
 		ClassifyList: classifyList,

+ 0 - 1
models/target.go

@@ -1212,7 +1212,6 @@ type EdbInfoItem struct {
 	ModifyDate   string     `description:"待更新日期"`
 	ModifyTime   string     `description:"最近一次更新时间"`
 	Status       string     `description:"状态:未完成/完成"`
-	EdbExist     int        `description:"指标库是否已添加:0-否;1-是"`
 	DataList     []*Edbdata `description:"指标数据列表"`
 }