|
@@ -4,11 +4,12 @@ import (
|
|
|
"eta/eta_mobile/services/alarm_msg"
|
|
|
"eta/eta_mobile/utils"
|
|
|
"fmt"
|
|
|
- "github.com/beego/beego/v2/client/orm"
|
|
|
- "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
"time"
|
|
|
+
|
|
|
+ "github.com/beego/beego/v2/client/orm"
|
|
|
+ "github.com/rdlucklib/rdluck_tools/paging"
|
|
|
)
|
|
|
|
|
|
type EdbInfo struct {
|
|
@@ -1923,3 +1924,22 @@ func GetEdbInfoCount(source int, edbCode string) (count int, err error) {
|
|
|
err = o.Raw(sql, source, edbCode).QueryRow(&count)
|
|
|
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
|
|
|
+}
|