Kaynağa Gözat

[144796] [MQ] Fix for msp notification bug.

Chris Lim 8 yıl önce
ebeveyn
işleme
1da307b9ae

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

@@ -69,7 +69,7 @@ mq:
                where header_id=h.header_id and process_flag='Y')
            and header_id=:headerID
       report: >
-       select h.header_id as headerID, h.upload_by as uploadedBy, h.upload_datetime as uploadDateTime,
+        select h.header_id as headerID, h.msp_shortname as mspShortName, h.upload_by as uploadedBy, h.upload_datetime as uploadDateTime,
           sum(case when status='ACCEPTED' then 1 else 0 end) as acceptedFileCount,
           sum(case when status='REJECTED' then 1 else 0 end) as rejectedFileCount
         from
@@ -81,7 +81,6 @@ mq:
         UPDATE TXN_MQ_MANIFEST_HEADER SET NOTIFICATION_SENT = 'Y', NOTIFICATION_DATETIME = :dateTime WHERE HEADER_ID = :headerID
       notif.stale: >
         SELECT HEADER_ID FROM TXN_MQ_MANIFEST_HEADER WHERE NOTIFICATION_SENT = 'N' AND UPLOAD_DATETIME < CURRENT_DATE
-      notif.target.department: MSP,METERING
     filter-by.status: >
         select * from txn_mq_manifest_file where status=:status and header_id=:headerID
   meter:

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

@@ -69,7 +69,7 @@ mq:
                where header_id=h.header_id and process_flag='Y')
            and header_id=:headerID
       report: >
-       select h.header_id as headerID, h.upload_by as uploadedBy, h.upload_datetime as uploadDateTime,
+       select h.header_id as headerID, h.msp_shortname as mspShortName, h.upload_by as uploadedBy, h.upload_datetime as uploadDateTime,
           sum(case when status='ACCEPTED' then 1 else 0 end) as acceptedFileCount,
           sum(case when status='REJECTED' then 1 else 0 end) as rejectedFileCount
         from
@@ -81,7 +81,6 @@ mq:
         UPDATE TXN_MQ_MANIFEST_HEADER SET NOTIFICATION_SENT = 'Y', NOTIFICATION_DATETIME = :dateTime WHERE HEADER_ID = :headerID
       notif.stale: >
         SELECT HEADER_ID FROM TXN_MQ_MANIFEST_HEADER WHERE NOTIFICATION_SENT = 'N' AND UPLOAD_DATETIME < CURRENT_DATE
-      notif.target.department: MSP,METERING
     filter-by.status: >
         select * from txn_mq_manifest_file where status=:status and header_id=:headerID
   meter: