查看报告模板接口添加cid

This commit is contained in:
王思川 2022-03-02 14:49:01 +08:00
parent 59d25c7c03
commit 942ac64568
1 changed files with 6 additions and 1 deletions

View File

@ -134,4 +134,9 @@ def report_create_script(rid, cid):
def get_report_text_model_impl(rid):
return FIND_DATA_FILTER("评价", "报告数据", {"评价ID": rid}, {"报告内容": 1})[0]
data = FIND_DATA_FILTER("评价", "报告数据", {"评价ID": rid}, {"企业ID": 1, "报告内容": 1})[0]
data['cid'] = data['企业ID']
data['text_model'] = data['报告内容']
data.pop('企业ID')
data.pop('报告内容')
return data