From 782e2fa4312054e7a20b38dfbc562b3e540fdbe1 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Wed, 19 Apr 2023 13:53:31 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E6=B6=88=E6=81=AF=E7=BB=9F=E8=AE=A1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/message/service/impl/MessagePushRecordServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MessagePushRecordServiceImpl.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MessagePushRecordServiceImpl.java index 9e4d2aa..f398de0 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MessagePushRecordServiceImpl.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MessagePushRecordServiceImpl.java @@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; import com.baomidou.mybatisplus.core.toolkit.IdWorker; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.google.common.collect.Lists; import com.hnac.hzims.common.utils.CacheUtil; import com.hnac.hzims.message.MessageConstants; import com.hnac.hzims.message.config.MessageFactory; @@ -294,6 +295,7 @@ public class MessagePushRecordServiceImpl extends BaseServiceImpl query = Wrappers.query(); query.select("business_classify businessClassify,count(0) todoNum"); query.eq("account", AuthUtil.getUserId()); + query.in("status", Lists.newArrayList(MessageConstants.PUSH_SUCCESS,MessageConstants.CONFIRM)); query.groupBy("business_classify"); List> list = noAurhScopeMapper.selectMaps(query); return list.stream().map(map -> {