This commit is contained in:
邹宗楠
2023-03-02 17:58:07 +08:00
parent 23d5cf212a
commit a9416695ba
5 changed files with 98 additions and 31 deletions

View File

@@ -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
}