From 6bfad8451915a9df2715d4bbb6926bac8daf6287 Mon Sep 17 00:00:00 2001 From: JYW <2013732181@qq.com> Date: 星期五, 10 五月 2024 13:21:25 +0800 Subject: [PATCH] 辅助工时增删改查 --- framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java b/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java index c1d6b66..7572a05 100644 --- a/framework/src/main/java/com/yuanchu/mom/service/impl/InformationNotificationServiceImpl.java +++ b/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 -- Gitblit v1.9.3