fix:🐛 修复字典状态的过滤问题(#251)
This commit is contained in:
1 parent
83529dd6f5
commit
ddb3a45e1a
4 files changed
+65
-51
No files matched your search
@@ -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