fix:🐛 修复字典状态的过滤问题(#251)

This commit is contained in:
wenjianzhang
2020-11-29 01:37:32 +08:00
parent 83529dd6f5
commit ddb3a45e1a
4 changed files with 65 additions and 51 deletions
+2
View File
@@ -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
}