MOD:fss 公章逻辑
Showing
2 changed files
with
10 additions
and
1 deletions
| ... | @@ -2179,7 +2179,7 @@ FS_COMPARE_LOGIC = { | ... | @@ -2179,7 +2179,7 @@ FS_COMPARE_LOGIC = { |
| 2179 | 2179 | ||
| 2180 | FSS_COMPARE_LOGIC = { | 2180 | FSS_COMPARE_LOGIC = { |
| 2181 | '公司名称': ('title', 'se_company_compare', {}, '财报情况说明公司名称错误'), | 2181 | '公司名称': ('title', 'se_company_compare', {}, '财报情况说明公司名称错误'), |
| 2182 | '公章': ('stamp', 'stamp_dict_compare', {}, '财报情况说明无公章'), | 2182 | '公章': ('stamp', 'stamp_str_compare', {}, '财报情况说明无公章'), |
| 2183 | } | 2183 | } |
| 2184 | 2184 | ||
| 2185 | AFC_HT_DATE_FIELDS = ['主借人日期', '共借人日期', '保证人日期1', '保证人日期2'] | 2185 | AFC_HT_DATE_FIELDS = ['主借人日期', '共借人日期', '保证人日期1', '保证人日期2'] | ... | ... |
| ... | @@ -700,6 +700,15 @@ class Comparison: | ... | @@ -700,6 +700,15 @@ class Comparison: |
| 700 | except Exception as e: | 700 | except Exception as e: |
| 701 | return self.RESULT_N | 701 | return self.RESULT_N |
| 702 | 702 | ||
| 703 | def stamp_str_compare(self, input_str, ocr_str, **kwargs): | ||
| 704 | try: | ||
| 705 | if ocr_str != 1: | ||
| 706 | return self.RESULT_N | ||
| 707 | else: | ||
| 708 | return self.RESULT_Y | ||
| 709 | except Exception as e: | ||
| 710 | return self.RESULT_N | ||
| 711 | |||
| 703 | def fiscal_year_compare(self, input_str, ocr_list, **kwargs): | 712 | def fiscal_year_compare(self, input_str, ocr_list, **kwargs): |
| 704 | try: | 713 | try: |
| 705 | this_year_str = datetime.now().strftime('%Y') | 714 | this_year_str = datetime.now().strftime('%Y') | ... | ... |
-
Please register or sign in to post a comment