Browse Source

fix:调整计算指标

Roc 3 years ago
parent
commit
b719f8d654
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/base_from_calculate.go

+ 2 - 2
controllers/base_from_calculate.go

@@ -543,7 +543,6 @@ func (this *CalculateController) Refresh() {
 		this.Data["json"] = br
 		this.ServeJSON()
 	}()
-	source := utils.DATA_SOURCE_LT
 	var req models.RefreshEdbInfoReq
 	err := json.Unmarshal(this.Ctx.Input.RequestBody, &req)
 	if err != nil {
@@ -576,8 +575,9 @@ func (this *CalculateController) Refresh() {
 		var errMsg string
 		endDate := time.Now().Format(utils.FormatDate)
 		edbInfoId := edbInfo.EdbInfoId
+		source := edbInfo.Source
 
-		switch edbInfo.Source {
+		switch source {
 		case utils.DATA_SOURCE_CALCULATE:
 			startDate = edbInfo.StartDate
 			sTime, err := time.Parse(utils.FormatDate, edbInfo.EndDate)