xyxie 1 月之前
父节点
当前提交
76d0785cf8
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      models/data_manage/base_from_ly_index.go

+ 1 - 2
models/data_manage/base_from_ly_index.go

@@ -64,14 +64,13 @@ type BaseFromLyIndexAndData struct {
 	Frequency            string  `orm:"column(frequency)" description:"频度"`
 	Unit                 string  `orm:"column(unit)" description:"单位"`
 	EdbExist             int     `orm:"column(edb_exist)" description:"指标库是否已添加:0-否;1-是"`
-	ModifyTimeMax        string  `json:"modify_time_max" description:"最后修改时间"`
+	ModifyTimeMax        string  `json:"modify_time_max" description:"最后修改时间" gorm:"-"` 
 	Value                float64 `orm:"column(value)" description:"数据值"`
 }
 
 func (b *BaseFromLyIndexAndData) AfterFind(db *gorm.DB) (err error) {
 	b.ModifyTime = utils.GormDateStrToDateTimeStr(b.ModifyTime)
 	b.CreateTime = utils.GormDateStrToDateTimeStr(b.CreateTime)
-	b.ModifyTimeMax = utils.GormDateStrToDateStr(b.ModifyTimeMax)
 	return
 }