From be1b60a1bfc1a4e29053d82c90e2036f9a5817a1 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期日, 24 一月 2021 09:31:55 +0800 Subject: [PATCH] test --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java index bb81750..cb333ef 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java @@ -338,7 +338,8 @@ } int num=0; if (operationType==3) { - num=userDao.deleteById(userId); +// num=userDao.deleteById(userId); + num=userDao.updateFaceState(userId); } else { num=userDao.updateById(sysUserDO); } @@ -1160,7 +1161,7 @@ public R noticeUnreadNum(Long userId) { NoticeUnReadVO noticeUnReadVO=sysUserNoticeDAO.noticeUnreadNum(userId); List<SysUserNoticeVO> sysUserNoticeVOList=new ArrayList<>(); - List<SysUserNoticeDO> sysUserNoticeDOS = sysUserNoticeDAO.selectList(new QueryWrapper<SysUserNoticeDO>().lambda().eq(SysUserNoticeDO::getUserId, userId).orderByDesc(SysUserNoticeDO::getCreateAt).groupBy(SysUserNoticeDO::getType)); + List<SysUserNoticeDO> sysUserNoticeDOS = sysUserNoticeDAO.selectList(new QueryWrapper<SysUserNoticeDO>().lambda().eq(SysUserNoticeDO::getUserId, userId).orderByDesc(SysUserNoticeDO::getCreateAt)); if (!ObjectUtils.isEmpty(sysUserNoticeDOS)) { sysUserNoticeDOS.forEach(sysUserNoticeDO -> { SysUserNoticeVO sysUserNoticeVO=new SysUserNoticeVO(); -- Gitblit v1.7.1