75c57aa6 by 冯轩

MOD:数控发票判断依据

1 parent df94248b
......@@ -688,8 +688,8 @@ class UploadDocView(GenericView, DocHandler):
classify_1 = 12
self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
if classify_1 == 0 and (document_name.startswith("dzfp_")):
classify_1 = 0
if classify_1 == 0 and (document_name.startswith("dzfp") or '电子发票' in document_name):
classify_1 = 29
self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
......@@ -1251,8 +1251,8 @@ class DocView(DocGenericView, DocHandler):
classify_1 = 12
self.running_log.info('[weixin bs process] [doc_id={0}]'.format(doc.id))
if classify_1 == 0 and (document_name.startswith("dzfp_")):
classify_1 = 0
if classify_1 == 0 and (document_name.startswith("dzfp") or '电子发票' in document_name):
classify_1 = 29
self.running_log.info('[dzfp process] [doc_id={0}]'.format(doc.id))
# tasks = ['{0}{1}{2}'.format(prefix, consts.SPLIT_STR, doc.id)]
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!