Roc 2 周之前
父節點
當前提交
7a6de0714e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      controllers/data_manage/ai_predict_model/index.go

+ 4 - 1
controllers/data_manage/ai_predict_model/index.go

@@ -1368,7 +1368,7 @@ func (this *AiPredictModelIndexController) Run() {
 	}
 
 	// 获取列表
-	list, e := indexOb.GetItemsByCondition(cond, pars, []string{`ai_predict_model_index_id`}, "")
+	list, e := indexOb.GetItemsByCondition(cond, pars, []string{`ai_predict_model_index_id,script_path`}, "")
 	if e != nil {
 		br.Msg = "获取失败"
 		br.ErrMsg = fmt.Sprintf("获取列表失败, %v", e)
@@ -1377,6 +1377,9 @@ func (this *AiPredictModelIndexController) Run() {
 
 	indexIdList := make([]int, 0)
 	for _, v := range list {
+		if v.ScriptPath == `` {
+			continue
+		}
 		indexIdList = append(indexIdList, v.AiPredictModelIndexId)
 	}