Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/service/system/sys_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (sysParamsService *SysParamsService) GetSysParamsInfoList(info systemReq.Sy
db = db.Where("name LIKE ?", "%"+info.Name+"%")
}
if info.Key != "" {
db = db.Where("key LIKE ?", "%"+info.Key+"%")
db = db.Where("`key` LIKE ?", "%"+info.Key+"%")
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix for the reserved keyword issue is correct, but this functionality lacks test coverage. Consider adding tests for the GetSysParamsInfoList function, especially for the Key filter condition, to prevent similar issues in the future. Other services in this directory like auto_code_package and auto_code_template have corresponding test files.

Copilot uses AI. Check for mistakes.
}
err = db.Count(&total).Error
if err != nil {
Expand Down
Loading