Skip to content

Commit

Permalink
修复like预编译
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyber0xFE committed Dec 7, 2024
1 parent 215e851 commit 36e7e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/system/dept.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (e *Dept) GetPage(bl bool) ([]Dept, error) {
table = table.Where("status = ?", e.Status)
}
if e.DeptPath != "" {
table = table.Where("deptPath like %?%", e.DeptPath)
table = table.Where("dept_path like ?", "%"+e.DeptPath+"%")
}

if err := table.Order("sort").Find(&doc).Error; err != nil {
Expand Down

0 comments on commit 36e7e12

Please sign in to comment.