123456789101112131415161718192021222324252627 |
- package data_manage
- // EdbDataCalculateLjztbpj 累计值同比拼接数据结构体
- //type EdbDataCalculateLjztbpj struct {
- // EdbDataId int `gorm:"column:edb_data_id;primaryKey;autoIncrement"`
- // EdbInfoId int
- // EdbCode string
- // DataTime string
- // Value float64
- // Status int
- // CreateTime time.Time
- // ModifyTime time.Time
- // DataTimestamp int64
- //}
- //func (m *EdbDataCalculateLjztbpj) AfterFind(db *gorm.DB) (err error) {
- // m.DataTime = utils.GormDateStrToDateStr(m.DataTime)
- // return
- //}
- // GetAllEdbDataCalculateLjztbpjByEdbInfoId 根据指标id获取全部的数据
- //func GetAllEdbDataCalculateLjztbpjByEdbInfoId(edbInfoId int) (items []*EdbDataCalculateLjztbpj, err error) {
- // o := global.DbMap[utils.DbNameIndex]
- // sql := ` SELECT * FROM edb_data_calculate_ljztbpj WHERE edb_info_id=? ORDER BY data_time DESC `
- // err = o.Raw(sql, edbInfoId).Find(&items).Error
- // return
- //}
|