Crunchy
2024-05-09 fb7bc35a49bac34373ee2ac93dc850d0b0f4444f
framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java
@@ -51,13 +51,18 @@
    @Override
    public Boolean checkForUnreadData() {
        Map<String, Integer> map1 = getLook.selectPowerByMethodAndUserId("selectInsOrderParameter");
        List<InformationNotification> informationNotifications = baseMapper.selectList(
                Wrappers.<InformationNotification>lambdaQuery()
                        .eq(InformationNotification::getConsigneeId, map1.get("userId"))
                        .eq(InformationNotification::getViewStatus, false)
                        .last("limit 1"));
        return !informationNotifications.isEmpty();
        Map<String, Integer> map1 = null;
        try {
            map1 = getLook.selectPowerByMethodAndUserId("selectInsOrderParameter");
            List<InformationNotification> informationNotifications = baseMapper.selectList(
                    Wrappers.<InformationNotification>lambdaQuery()
                            .eq(InformationNotification::getConsigneeId, map1.get("userId"))
                            .eq(InformationNotification::getViewStatus, false)
                            .last("limit 1"));
            return !informationNotifications.isEmpty();
        } catch (Exception e) {
        }
        return false;
    }
    @Override