Skip to content

Commit f62040f

Browse files
committed
Fixed query for notification summary
1 parent 58a20a0 commit f62040f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/cc/altius/FASP/dao/impl/ErpLinkingDaoImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ public List<NotificationSummaryDTO> getNotificationSummary(CustomUserDetails cur
18201820
+ " COUNT(DISTINCT(n.`NOTIFICATION_ID`)) as NOTIFICATION_COUNT "
18211821
+ " FROM rm_erp_notification n "
18221822
+ " LEFT JOIN rm_shipment_linking sl ON sl.SHIPMENT_LINKING_ID=n.SHIPMENT_LINKING_ID "
1823-
+ " LEFT JOIN vw_program p ON p.`PROGRAM_ID`=s.`PROGRAM_ID` "
1823+
+ " LEFT JOIN vw_program p ON p.`PROGRAM_ID`=sl.`PROGRAM_ID` "
18241824
+ " left join rm_shipment s on s.SHIPMENT_ID=sl.CHILD_SHIPMENT_ID "
18251825
+ " left join rm_shipment_trans st on st.SHIPMENT_ID=s.SHIPMENT_ID and st.VERSION_ID=s.MAX_VERSION_ID "
18261826
+ " left join rm_program_planning_unit ppu on ppu.PROGRAM_ID = sl.PROGRAM_ID AND ppu.PLANNING_UNIT_ID=st.PLANNING_UNIT_ID "

0 commit comments

Comments
 (0)