|
@@ -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
|
|
|
}
|
|
|
|