Browse Source

fix:彭博数据调整

Roc 3 years ago
parent
commit
0053133d95
2 changed files with 1 additions and 2 deletions
  1. 0 1
      controllers/base_from_pb.go
  2. 1 1
      services/base_from_pb.go

+ 0 - 1
controllers/base_from_pb.go

@@ -100,7 +100,6 @@ func (this *PbController) Refresh() {
 
 		//开始日期格式化
 		startDateTime, _ := time.Parse(utils.FormatDate, req.StartDate)
-
 		dataItem, err := services.GetEdbDataFromPb(req.EdbCode, startDateTime.Format(utils.FormatDateUnSpace), utils.BASE_END_DATE_UnSpace)
 		if err != nil {
 			br.Msg = "获取指标信息失败!"

+ 1 - 1
services/base_from_pb.go

@@ -17,7 +17,7 @@ type EdbDataFromPb struct {
 
 // GetEdbDataFromPb 获取Pb数据
 func GetEdbDataFromPb(edbCode, startDate, endDate string) (item *EdbDataFromPb, err error) {
-	//edbCode = url.QueryEscape(edbCode)
+	edbCode = url.QueryEscape(edbCode)
 	bpUrl := utils.Hz_Pb_Data_Url + `edbInfo/pb?EdbCode=%s&StartDate=%s&EndDate=%s`
 	bpUrl = fmt.Sprintf(bpUrl, edbCode, startDate, endDate)
 	utils.FileLog.Info("bpUrl:" + bpUrl)