|
@@ -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)
|
|
|
}
|
|
|
|