Commit 3ed27d47 authored by pengxiong's avatar pengxiong

制作报告修复

parent 7aecc10c
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
# @Software : PyCharm # @Software : PyCharm
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
import datetime import datetime
import json
import os import os
import uuid import uuid
...@@ -165,7 +166,7 @@ def make_report(args): ...@@ -165,7 +166,7 @@ def make_report(args):
customer_id = args.get('customer_id') customer_id = args.get('customer_id')
type = args.get('type') type = args.get('type')
name = args.get('name') name = args.get('name')
report_data = args.get('report_data') report_data = json.loads(args.get('report_data'))
pdf_name = str(uuid.uuid4()) + '.pdf' pdf_name = str(uuid.uuid4()) + '.pdf'
args['update_time'] = datetime.datetime.now() args['update_time'] = datetime.datetime.now()
args['update_status'] = 1 args['update_status'] = 1
......
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