Ver Fonte

[138737] Updated header record when notification is triggered.

Chris Lim há 9 anos atrás
pai
commit
3a1d5a7410

+ 2 - 0
crss-metering/application-oracle-query.yml

@@ -54,6 +54,8 @@ mq:
         where
           f.header_id = h.header_id and h.header_id=:headerID
         GROUP BY h.header_id, h.upload_datetime
+      notif.status: >
+        UPDATE TXN_MQ_MANIFEST_HEADER SET NOTIFICATION_SENT = 'Y', NOTIFICATION_DATETIME = :dateTime WHERE HEADER_ID = :headerID;
       notif.target.department: MSP,METERING
     filter-by.status: >
         select * from txn_mq_manifest_file where status=:status and header_id=:headerID

+ 2 - 0
crss-metering/application-pg-query.yml

@@ -54,6 +54,8 @@ mq:
         where
           f.header_id = h.header_id and h.header_id=:headerID
         GROUP BY h.header_id, h.upload_datetime
+      notif.status: >
+        UPDATE TXN_MQ_MANIFEST_HEADER SET NOTIFICATION_SENT = 'Y', NOTIFICATION_DATETIME = :dateTime WHERE HEADER_ID = :headerID;
       notif.target.department: MSP,METERING
     filter-by.status: >
         select * from txn_mq_manifest_file where status=:status and header_id=:headerID