Commit 234af552 authored by pengxiong's avatar pengxiong

查询报告列表限制字段

parent e19cdd63
......@@ -57,7 +57,8 @@ def get_report_list(args):
totalSize = res.count()
data = res.offset(offset).limit(pageSize)
if data:
data = [r.to_dict() for r in data]
allow_field = ['id', 'customer_id', 'ifa_id', 'update_time', 'update_status', 'file', 'be_viewed', 'name']
data = [r.to_dict(allow_field=allow_field) for r in data]
return {
'content': data,
'pageNum': pageNumber,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment