6f237ee3 by 周伟奇

add autosettlement link

1 parent 0ed2410b
......@@ -1352,10 +1352,16 @@ class AutoSettlementView(GenericView):
auto_queryset = auto_class.objects.filter(query).values(*val_tuple).order_by(
'-ocr_latest_comparison_time')[start_index: end_index]
auto_link_base = '{0}/showList/showList?entity={1}&scheme={2}&case_id={3}&auto=1'
for auto_dict in auto_queryset:
auto_dict['ocr_auto_result_pass'] = consts.RE_RESULT_MAP.get(auto_dict.get('ocr_auto_result_pass'))
auto_dict['ocr_whole_result_pass'] = consts.RE_RESULT_MAP.get(auto_dict.get('ocr_whole_result_pass'))
auto_dict['rpa_result'] = consts.RE_RPA_RESULT_MAP.get(auto_dict.get('rpa_result'))
auto_dict['target_url'] = auto_link_base.format(
conf.BASE_URL,
business_type,
consts.COMPARE_DOC_SCHEME_LIST[1],
auto_dict['application_id'])
# total = len(doc_list)
pagination = {'current': page, 'total': total, 'page_size': page_size}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!