1
13693261870
2024-12-10 7006932fa6e891d7f92088b9f59fa26c290160a6
se-modules/se-system/src/main/resources/mapper/system/IndexMapper.xml
@@ -28,12 +28,21 @@
      where oper_url = '/index/addAccessLog' and oper_time >= #{createTime};
   </select>
   <select id="sysVisitList" resultType="java.util.Map">
   <!--select id="sysVisitList" resultType="java.util.Map">
      select title, count(*) count
      from sys_oper_log
      where oper_time >= #{createTime} and (title like '%平台' or title like '%分系统' or title like '%研讨厅' or title = '装备库')
      group by title
      order by count desc
      limit ${amount};
   </select-->
   <select id="sysVisitList" resultType="java.util.Map">
      select menu_name "name",
         (select count(*) from sys_oper_log b where b.title = a.menu_name and date(oper_time) = date(now())) "tcount",
         (select count(*) from sys_oper_log b where b.title = a.menu_name and week(oper_time) = week(now())) "wcount"
      from sys_menu a
      where a.mark = 'index' and a.menu_type = 'C'
      order by a.order_num;
   </select>
</mapper>