89c76319 by 周伟奇

fix ecm

1 parent e3565c7c
...@@ -37,8 +37,12 @@ class ECM: ...@@ -37,8 +37,12 @@ class ECM:
37 'AFC': 'SF5_CN', 37 'AFC': 'SF5_CN',
38 'HIL': 'SF5_CL', 38 'HIL': 'SF5_CL',
39 } 39 }
40 self.b_region_name_map = {
41 'AFC': 'CN',
42 'HIL': 'CL',
43 }
40 self.prefix = 'OCR' 44 self.prefix = 'OCR'
41 self.upload_fields = ["b_region", "b_region_name", "r_object_type", "r_creation_date", 45 self.upload_fields = ["r_object_type", "r_creation_date",
42 "r_creator_name", "r_modify_date", "r_modifier", "owner", "b_short_application_no", 46 "r_creator_name", "r_modify_date", "r_modifier", "owner", "b_short_application_no",
43 "b_short_contract_no", "b_customer_id", "b_customer_name", "b_customer_mobile", 47 "b_short_contract_no", "b_customer_id", "b_customer_name", "b_customer_mobile",
44 "b_coborrower_id", "b_coborrower_name", "b_guarantor_id", "b_guarantor_name", 48 "b_coborrower_id", "b_coborrower_name", "b_guarantor_id", "b_guarantor_name",
...@@ -139,6 +143,8 @@ class ECM: ...@@ -139,6 +143,8 @@ class ECM:
139 "format": "excel12book", 143 "format": "excel12book",
140 "r_content_type": "excel12book", 144 "r_content_type": "excel12book",
141 "b_application_no": doc.application_id, 145 "b_application_no": doc.application_id,
146 "b_region": "0",
147 "b_region_name": self.b_region_name_map.get(business_type),
142 # "file_base64_content": "", 148 # "file_base64_content": "",
143 } 149 }
144 for key in self.upload_fields: 150 for key in self.upload_fields:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!