mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
fix:🐛 修复字典状态的过滤问题(#251)
This commit is contained in:
@@ -88,6 +88,8 @@ func (e *DictData) Get() ([]DictData, error) {
|
||||
table = table.Where("dict_type = ?", e.DictType)
|
||||
}
|
||||
|
||||
table = table.Where("status = ?", 2)
|
||||
|
||||
if err := table.Order("dict_sort").Find(&doc).Error; err != nil {
|
||||
return doc, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user