|
@@ -3,7 +3,9 @@ package data_stat
|
|
import (
|
|
import (
|
|
"eta/eta_api/global"
|
|
"eta/eta_api/global"
|
|
"eta/eta_api/utils"
|
|
"eta/eta_api/utils"
|
|
|
|
+
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
|
|
+ "gorm.io/gorm"
|
|
)
|
|
)
|
|
|
|
|
|
// EdbInfoDeleteLog 指标删除日志表
|
|
// EdbInfoDeleteLog 指标删除日志表
|
|
@@ -48,6 +50,19 @@ type EdbInfoDeleteLog struct {
|
|
ErDataUpdateDate string `description:"本次更新,数据发生变化的最早日期"`
|
|
ErDataUpdateDate string `description:"本次更新,数据发生变化的最早日期"`
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+func (e *EdbInfoDeleteLog) AfterFind(db *gorm.DB) (err error) {
|
|
|
|
+ e.EdbCreateTime = utils.GormDateStrToDateTimeStr(e.EdbCreateTime)
|
|
|
|
+ e.EdbModifyTime = utils.GormDateStrToDateTimeStr(e.EdbModifyTime)
|
|
|
|
+ e.CreateTime = utils.GormDateStrToDateTimeStr(e.CreateTime)
|
|
|
|
+ e.DataUpdateTime = utils.GormDateStrToDateTimeStr(e.DataUpdateTime)
|
|
|
|
+ e.ErDataUpdateDate = utils.GormDateStrToDateStr(e.ErDataUpdateDate)
|
|
|
|
+ e.LatestDate = utils.GormDateStrToDateStr(e.LatestDate)
|
|
|
|
+ e.StartDate = utils.GormDateStrToDateStr(e.StartDate)
|
|
|
|
+ e.EndDate = utils.GormDateStrToDateStr(e.EndDate)
|
|
|
|
+
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
type EdbInfoDeleteLogItem struct {
|
|
type EdbInfoDeleteLogItem struct {
|
|
Id uint64 `orm:"column(id);"`
|
|
Id uint64 `orm:"column(id);"`
|
|
EdbInfoId int `description:"指标ID"`
|
|
EdbInfoId int `description:"指标ID"`
|