瀏覽代碼

附件识别适配新流程

luojiehua 4 月之前
父節點
當前提交
eb8bad3fd9
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      BaseDataMaintenance/maintenance/dataflow_mq.py

+ 5 - 0
BaseDataMaintenance/maintenance/dataflow_mq.py

@@ -654,6 +654,11 @@ class Dataflow_ActivteMQ_attachment(Dataflow_attachment):
                             _attach_pg = Attachment_postgres(_attach_ots.getProperties())
                             _attach_pg.setValue("ots_exists",True,True)
                             list_attachment.append(_attach_pg)
+                        else:
+                            log("getAttachments status None find in ots:%s"%(_filemd5))
+                            _attach_pg = Attachment_postgres(_attach_ots.getProperties())
+                            _attach_pg.setValue("ots_exists",True,True)
+                            list_attachment.append(_attach_pg)
 
                     else:
                         log("getAttachments search in path:%s"%(_filemd5))