🐛 fix bugs

Signed-off-by: jagger <cossjie@foxmail.com>

Former-commit-id: f030b1c53b5f3a208c6b15d978ad988e0f2ef3db
This commit is contained in:
jagger 2024-03-15 15:27:13 +08:00
parent 2d6bd7f6a1
commit b831ff2204
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ func (l *ClusterListLogic) ClusterList(req *types.ClusterReq) (resp *types.PageR
db = db.Where("t_cluster.name LIKE ?", "%"+req.Name+"%")
}
if req.AdapterId != "" {
db = db.Where("t_cluster.adapter_id = ?", "%"+req.AdapterId+"%")
db = db.Where("t_cluster.adapter_id = ?", req.AdapterId)
}
if req.Nickname != "" {
db = db.Where("t_cluster.nickname LIKE ?", "%"+req.Nickname+"%")