fix ecm
Showing
1 changed file
with
5 additions
and
2 deletions
| 1 | import os | 1 | import os |
| 2 | import time | ||
| 2 | import base64 | 3 | import base64 |
| 3 | import requests | 4 | import requests |
| 4 | from common.redis_cache import redis_handler as rh | 5 | from common.redis_cache import redis_handler as rh |
| ... | @@ -47,8 +48,9 @@ class ECM: | ... | @@ -47,8 +48,9 @@ class ECM: |
| 47 | "r_creator_name", "r_modify_date", "r_modifier", "owner", "b_short_application_no", | 48 | "r_creator_name", "r_modify_date", "r_modifier", "owner", "b_short_application_no", |
| 48 | "b_short_contract_no", "b_customer_id", "b_customer_name", "b_customer_mobile", | 49 | "b_short_contract_no", "b_customer_id", "b_customer_name", "b_customer_mobile", |
| 49 | "b_coborrower_id", "b_coborrower_name", "b_guarantor_id", "b_guarantor_name", | 50 | "b_coborrower_id", "b_coborrower_name", "b_guarantor_id", "b_guarantor_name", |
| 50 | "b_frontend_partner", "b_dealer_code", "b_dealer_name", "b_input_date", "b_comment", | 51 | "b_frontend_partner", "b_dealer_code", "b_dealer_name", "b_comment", |
| 51 | "b_contract_no", "b_location"] | 52 | "b_contract_no", "b_location", "b_company_name", "b_certificate_code", "b_vin", |
| 53 | "b_registration_no", "b_F2I_name"] | ||
| 52 | 54 | ||
| 53 | def update_oauth_token(self): | 55 | def update_oauth_token(self): |
| 54 | response = requests.post(self.oauth_url, headers=self.oauth_headers, data=self.oauth_payload, verify=False) | 56 | response = requests.post(self.oauth_url, headers=self.oauth_headers, data=self.oauth_payload, verify=False) |
| ... | @@ -144,6 +146,7 @@ class ECM: | ... | @@ -144,6 +146,7 @@ class ECM: |
| 144 | "b_application_no": doc.application_id, | 146 | "b_application_no": doc.application_id, |
| 145 | "b_region": "0", | 147 | "b_region": "0", |
| 146 | "b_region_name": self.b_region_name_map.get(business_type), | 148 | "b_region_name": self.b_region_name_map.get(business_type), |
| 149 | "b_input_date": time.strftime("%m/%d/%Y %X"), | ||
| 147 | # "file_base64_content": "", | 150 | # "file_base64_content": "", |
| 148 | } | 151 | } |
| 149 | for key in self.upload_fields: | 152 | for key in self.upload_fields: | ... | ... |
-
Please register or sign in to post a comment