From 94e3a209bb9a31c4ddbd31494bb1628f6fe2e96e Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 12 十月 2022 17:54:49 +0800
Subject: [PATCH] 新增首页工单 办事指南排行榜接口 导办人员排行榜接口 组织排行榜接口 新增办事指南统计接口 导办人员统计接口 组织胖行榜统计接口
---
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserNoticeDAO.java | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserNoticeDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserNoticeDAO.java
index 412ead7..33e1dee 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserNoticeDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/SysUserNoticeDAO.java
@@ -1,10 +1,10 @@
package com.panzhihua.service_user.dao;
+import org.apache.ibatis.annotations.Mapper;
+
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.panzhihua.common.model.vos.user.NoticeUnReadVO;
import com.panzhihua.service_user.model.dos.SysUserNoticeDO;
-import org.apache.ibatis.annotations.Mapper;
-import org.apache.ibatis.annotations.Select;
/**
* @program: springcloud_k8s_panzhihuazhihuishequ
@@ -15,14 +15,6 @@
@Mapper
public interface SysUserNoticeDAO extends BaseMapper<SysUserNoticeDO> {
- @Select("SELECT \n" +
- "COUNT(case WHEN type=1 then id else null end )activityUnread,\n" +
- "COUNT(case WHEN type=2 then id else null end )serviceUnread,\n" +
- "COUNT(case WHEN type=3 then id else null end )systemUnread,\n" +
- "COUNT(case WHEN type=4 then id else null end )scoreUnread\n" +
- "FROM\n" +
- "sys_user_notice \n" +
- "WHERE\n" +
- "user_id =#{userId} and `status`=0")
+
NoticeUnReadVO noticeUnreadNum(Long userId);
}
--
Gitblit v1.7.1