perf: 优化列表查询排序
This commit is contained in:
@@ -84,6 +84,7 @@ class DictTypeDao:
|
||||
if query_object.begin_time and query_object.end_time
|
||||
else True,
|
||||
)
|
||||
.order_by(SysDictType.dict_id)
|
||||
.distinct()
|
||||
)
|
||||
dict_type_list = await PageUtil.paginate(db, query, query_object.page_num, query_object.page_size, is_page)
|
||||
|
Reference in New Issue
Block a user