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