|
@@ -43,7 +43,7 @@ func (this *ThsDsController) Add() {
|
|
|
cacheKey = utils.CACHE_EDB_DATA_ADD + strconv.Itoa(source) + "_" + req.StockCode + req.EdbCode
|
|
|
if !utils.Rc.IsExist(cacheKey) {
|
|
|
utils.Rc.SetNX(cacheKey, 1, 1*time.Minute)
|
|
|
- dataItem, err := services.GetEdbDataFromThsDs(req.StockCode, req.EdbCode, utils.BASE_START_DATE, utils.BASE_END_DATE, "")
|
|
|
+ dataItem, err := services.GetEdbDataFromThsDs(req.StockCode, req.EdbCode, utils.BASE_START_DATE, time.Now().Format(utils.FormatDate), "")
|
|
|
if err != nil {
|
|
|
br.Msg = "获取指标信息失败!"
|
|
|
br.ErrMsg = "获取指标信息失败 GetEdbDataFromThsDs,Err:" + err.Error()
|