1
This commit is contained in:
@@ -62,8 +62,8 @@ func GetSysConfigAsInt64(db *DaoDB, key string) (value int64, err error) {
|
||||
}
|
||||
|
||||
// 修改配置
|
||||
func UpdateOperatorConfig(param string) error {
|
||||
func UpdateOperatorConfig(param string, types, key string) error {
|
||||
sql := `UPDATE new_config c SET c.value = ?,c.updated_at = ? WHERE c.type = ? AND c.key = ?`
|
||||
_, err := ExecuteSQL(GetDB(), sql, []interface{}{param, time.Now(), "Sys", "FZR"})
|
||||
_, err := ExecuteSQL(GetDB(), sql, []interface{}{param, time.Now(), types, key})
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user