Browse Source

fix:指标批量计算的时候,需要更新下es信息

Roc 5 months ago
parent
commit
3782c862cd
1 changed files with 6 additions and 0 deletions
  1. 6 0
      controllers/base_from_calculate.go

+ 6 - 0
controllers/base_from_calculate.go

@@ -778,6 +778,9 @@ func (this *CalculateController) BatchSave() {
 	}
 	edbInfoId = edbInfo.EdbInfoId
 
+	// 更新ES
+	go logic.UpdateEs(edbInfoId)
+
 	//处理同名指标
 	{
 		edbNameList, err := models.GetEdbInfoByName(req.EdbName)
@@ -1275,6 +1278,9 @@ func (this *CalculateController) BatchEdit() {
 	// 重置计算指标中的引用关系
 	go services.ResetEdbRelation(edbInfoId)
 
+	// 更新ES
+	go logic.UpdateEs(edbInfo.EdbInfoId)
+
 	resp := models.AddEdbInfoResp{
 		EdbInfoId:  edbInfo.EdbInfoId,
 		UniqueCode: edbInfo.UniqueCode,