82e1a38f by 周伟奇

fix ltgt

1 parent 3586d37a
...@@ -1433,7 +1433,7 @@ ASP_KEY = 'is_asp' ...@@ -1433,7 +1433,7 @@ ASP_KEY = 'is_asp'
1433 1433
1434 1434
1435 AFC_CON_MAP_LTGT = { 1435 AFC_CON_MAP_LTGT = {
1436 '合同编号': (1, 1, '合同编号', None), 1436 '合同编号': (2, 2, '合同编号', None),
1437 '借款人姓名': (2, 2, '借款人及抵押人', 'name'), 1437 '借款人姓名': (2, 2, '借款人及抵押人', 'name'),
1438 '共借人姓名': (2, 2, '共同借款人及共同抵押人', 'name'), 1438 '共借人姓名': (2, 2, '共同借款人及共同抵押人', 'name'),
1439 '保证人姓名1': (2, 2, '保证人1', 'name'), 1439 '保证人姓名1': (2, 2, '保证人1', 'name'),
......
...@@ -598,6 +598,10 @@ class Command(BaseCommand, LoggerMixin): ...@@ -598,6 +598,10 @@ class Command(BaseCommand, LoggerMixin):
598 first_head_row = head_fields 598 first_head_row = head_fields
599 else: 599 else:
600 sheet_name, key_field, side_field_order, field_order = self.field_map_2[result[self.CLASSIFY_KEY]] 600 sheet_name, key_field, side_field_order, field_order = self.field_map_2[result[self.CLASSIFY_KEY]]
601
602 if key_field is not None and key_field in result[self.RESULT_KEY] and result[self.CLASSIFY_KEY] == consts.IC_CLASSIFY:
603 continue
604
601 if key_field is not None and len(side_field_order) > len(field_order): 605 if key_field is not None and len(side_field_order) > len(field_order):
602 first_head_row = [] 606 first_head_row = []
603 for a, _ in side_field_order: 607 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!