82e1a38f by 周伟奇

fix ltgt

1 parent 3586d37a
......@@ -1433,7 +1433,7 @@ ASP_KEY = 'is_asp'
AFC_CON_MAP_LTGT = {
'合同编号': (1, 1, '合同编号', None),
'合同编号': (2, 2, '合同编号', None),
'借款人姓名': (2, 2, '借款人及抵押人', 'name'),
'共借人姓名': (2, 2, '共同借款人及共同抵押人', 'name'),
'保证人姓名1': (2, 2, '保证人1', 'name'),
......
......@@ -598,6 +598,10 @@ class Command(BaseCommand, LoggerMixin):
first_head_row = head_fields
else:
sheet_name, key_field, side_field_order, field_order = self.field_map_2[result[self.CLASSIFY_KEY]]
if key_field is not None and key_field in result[self.RESULT_KEY] and result[self.CLASSIFY_KEY] == consts.IC_CLASSIFY:
continue
if key_field is not None and len(side_field_order) > len(field_order):
first_head_row = []
for a, _ in side_field_order:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!