Skip to content

Commit

Permalink
[fix] 设备分组匹配
Browse files Browse the repository at this point in the history
Signed-off-by: PandaX <[email protected]>
  • Loading branch information
PandaX-Go authored and gitee-org committed Nov 12, 2024
1 parent 631451d commit 73daeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/device/services/device_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (m *deviceGroupModelImpl) FindListPage(page, pageSize int, data entity.Devi
db = db.Where("name like ?", "%"+data.Name+"%")
}
if data.Path != "" {
db = db.Where("path like %?%", "%"+data.Path+"%")
db = db.Where("path like ?", "%"+data.Path+"%")
}
if data.Status != "" {
db = db.Where("status = ?", data.Status)
Expand Down

0 comments on commit 73daeed

Please sign in to comment.