chore: update explore header style (#1137)

This commit is contained in:
boojack
2023-02-22 19:21:08 +08:00
committed by GitHub
parent d1b307b18f
commit 42d849abfc
6 changed files with 36 additions and 46 deletions

View File

@@ -114,12 +114,14 @@ func upsertSystemSetting(ctx context.Context, tx *sql.Tx, upsert *api.SystemSett
func findSystemSettingList(ctx context.Context, tx *sql.Tx, find *api.SystemSettingFind) ([]*systemSettingRaw, error) {
where, args := []string{"1 = 1"}, []interface{}{}
where, args = append(where, "name = ?"), append(args, find.Name.String())
if find.Name.String() != "" {
where, args = append(where, "name = ?"), append(args, find.Name.String())
}
query := `
SELECT
name,
value,
value,
description
FROM system_setting
WHERE ` + strings.Join(where, " AND ")