|
@@ -1847,25 +1847,6 @@ func GetEdbInfoByCodeArr(codes []string, edbInfoType int) (items []*EdbInfo, err
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-type EdbInfoEditRecord struct {
|
|
|
- EdbInfoId int `description:"指标ID"`
|
|
|
- EdbName string `description:"指标名称"`
|
|
|
- Frequency string `description:"频率"`
|
|
|
- Unit string `description:"单位"`
|
|
|
- ClassifyId int `description:"分类id"`
|
|
|
- CalculateFormula string `description:"计算公式"`
|
|
|
- OperateUserId int `description:"操作人id"`
|
|
|
- OperateUserRealName string `description:"操作人姓名"`
|
|
|
-}
|
|
|
-
|
|
|
-func ModifyEdbInfoBaseTimeById(edbInfoId int, cTime time.Time) (err error) {
|
|
|
- o := orm.NewOrmUsingDB("data")
|
|
|
- // 更新修改时间
|
|
|
- sql := ` UPDATE edb_info SET base_modify_time = ? WHERE edb_info_id = ? `
|
|
|
- _, err = o.Raw(sql, cTime, edbInfoId).Exec()
|
|
|
- return
|
|
|
-}
|
|
|
-
|
|
|
// GetEdbCodesBySource 根据来源获取指标编码
|
|
|
func GetEdbCodesBySource(source int) (items []*EdbInfo, err error) {
|
|
|
o := orm.NewOrmUsingDB("data")
|