浏览代码

change gorm

Roc 1 月之前
父节点
当前提交
0369ed1323
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/data_manage/ai_predict_model/framework.go

+ 1 - 1
controllers/data_manage/ai_predict_model/framework.go

@@ -633,7 +633,7 @@ func (c *AiPredictModelFrameworkController) Detail() {
 		indexIdNum := len(aiPredictModelIndexIdList)
 		if indexIdNum > 0 {
 			indexObj := aiPredictModel.AiPredictModelIndex{}
-			indexList, e := indexObj.GetItemsByCondition(` AND ai_predict_model_index_id in (`+utils.GetOrmInReplace(indexIdNum)+`)`, aiPredictModelIndexIdList, []string{}, "")
+			indexList, e := indexObj.GetItemsByCondition(` AND ai_predict_model_index_id in (`+utils.GetOrmInReplace(indexIdNum)+`)`, []interface{}{aiPredictModelIndexIdList}, []string{}, "")
 			if e != nil {
 				if utils.IsErrNoRow(e) {
 					br.Msg = "框架不存在, 请刷新页面"