浏览代码

Merge branch 'eta_bug_7034_fenwei_1224@guomengyuan' into debug

gmy 3 月之前
父节点
当前提交
353f1795d4
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      controllers/data_manage/fenwei_data.go

+ 7 - 1
controllers/data_manage/fenwei_data.go

@@ -335,8 +335,14 @@ func (this *EdbInfoController) FenweiSingleData() {
 	ret.IndexName = indexInfo.IndexName
 	ret.Frequency = indexInfo.Frequency
 	ret.CreateTime = indexInfo.CreateTime.Format(utils.FormatDateTime)
-	ret.ModifyTime = indexInfo.ModifyTime.Format(utils.FormatDateTime)
 	ret.Unit = indexInfo.Unit
+	// 获取数据最新更新时间
+	lastModifyTimeList, err := data_manage.GetFenWeiDataLastModifyTimeList([]string{indexInfo.IndexCode})
+	if err != nil {
+		return
+	}
+	ret.ModifyTime = lastModifyTimeList[0].ModifyTime
+
 	for _, v := range dataTmpList {
 		tmp := &data_manage.FenweiSingleData{
 			Value:    v.Value,