MOD:retrigger 区分 e-bs,e-invoice
Showing
1 changed file
with
16 additions
and
0 deletions
| ... | @@ -2135,6 +2135,14 @@ class DocReOcrView(GenericView, DocHandler): | ... | @@ -2135,6 +2135,14 @@ class DocReOcrView(GenericView, DocHandler): |
| 2135 | classify_1 = classify_1_tmp | 2135 | classify_1 = classify_1_tmp |
| 2136 | break | 2136 | break |
| 2137 | 2137 | ||
| 2138 | if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name): | ||
| 2139 | classify_1 = 12 | ||
| 2140 | self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id)) | ||
| 2141 | |||
| 2142 | if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name): | ||
| 2143 | classify_1 = 29 | ||
| 2144 | self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id)) | ||
| 2145 | |||
| 2138 | 2146 | ||
| 2139 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ | 2147 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ |
| 2140 | or doc.document_name.endswith('.RAR'): | 2148 | or doc.document_name.endswith('.RAR'): |
| ... | @@ -2195,6 +2203,14 @@ class BatchReOcrView(GenericView, DocHandler): | ... | @@ -2195,6 +2203,14 @@ class BatchReOcrView(GenericView, DocHandler): |
| 2195 | classify_1 = classify_1_tmp | 2203 | classify_1 = classify_1_tmp |
| 2196 | break | 2204 | break |
| 2197 | 2205 | ||
| 2206 | if classify_1 == 0 and ('微信支付交易明细证明' in doc.document_name or '微信流水' in doc.document_name): | ||
| 2207 | classify_1 = 12 | ||
| 2208 | self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id)) | ||
| 2209 | |||
| 2210 | if classify_1 == 0 and (doc.document_name.startswith("dzfp") or '电子发票' in doc.document_name): | ||
| 2211 | classify_1 = 29 | ||
| 2212 | self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id)) | ||
| 2213 | |||
| 2198 | 2214 | ||
| 2199 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ | 2215 | if doc.document_name.endswith('.zip') or doc.document_name.endswith('.rar') or doc.document_name.endswith('.ZIP') \ |
| 2200 | or doc.document_name.endswith('.RAR'): | 2216 | or doc.document_name.endswith('.RAR'): | ... | ... |
-
Please register or sign in to post a comment