xyxie 1 year ago
parent
commit
5892936061
1 changed files with 5 additions and 0 deletions
  1. 5 0
      controllers/semantic_analysis/sa_compare.go

+ 5 - 0
controllers/semantic_analysis/sa_compare.go

@@ -178,6 +178,11 @@ func (this *SaCompareController) Save() {
 		}
 	}
 
+	// 新增ES对比文档
+	go func() {
+		_ = services.HandleElasticSaCompare(compareItem.SaCompareId)
+	}()
+
 	// 获取表格数据
 	compLabCond := fmt.Sprintf(` AND a.%s = ?`, saModel.SaCompareLabelColumns.CompareId)
 	compLabPars := make([]interface{}, 0)