package models import ( "github.com/beego/beego/v2/client/orm" "time" ) // EdbInfoCalculateMapping 计算指标于基础指标,关系表 type EdbInfoCalculateMapping struct { EdbInfoCalculateMappingId int `orm:"column(edb_info_calculate_mapping_id);pk"` EdbInfoId int `description:"计算指标id"` Source int `description:"计算指标来源"` SourceName string `description:"计算指标来源名称"` EdbCode string `description:"计算指标编码"` FromEdbInfoId int `description:"基础指标id"` FromEdbCode string `description:"基础指标编码"` FromEdbName string `description:"基础指标名称"` FromSource int `description:"基础指标来源"` FromSourceName string `description:"基础指标来源名称"` FromTag string `description:"来源指标标签"` Sort int `description:"计算指标名称排序"` CreateTime time.Time `description:"创建时间"` ModifyTime time.Time `description:"修改时间"` } // AddEdbInfoCalculateMappingMulti 批量添加指标关系表 func AddEdbInfoCalculateMappingMulti(items []*EdbInfoCalculateMapping) (err error) { o := orm.NewOrm() _, err = o.InsertMulti(1, items) return }