SysReportMapper.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. package com.ruoyi.system.mapper;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.ruoyi.system.domain.SysReport;
  5. import com.ruoyi.system.domain.SysReportData;
  6. import org.apache.ibatis.annotations.Param;
  7. /**
  8. * reportMapper接口
  9. *
  10. * @author limeng
  11. * @date 2023-08-09
  12. */
  13. public interface SysReportMapper
  14. {
  15. /**
  16. * 查询report
  17. *
  18. * @param id report主键
  19. * @return report
  20. */
  21. public SysReport selectSysReportById(String id);
  22. /**
  23. * 查询report列表
  24. *
  25. * @param sysReport report
  26. * @return report集合
  27. */
  28. public List<SysReport> selectSysReportList(SysReport sysReport);
  29. /**
  30. * 查询report列表
  31. *
  32. * @return report集合
  33. */
  34. public SysReportData selectSysReportData();
  35. /**
  36. * 新增report
  37. *
  38. * @param sysReport report
  39. * @return 结果
  40. */
  41. public int insertSysReport(SysReport sysReport);
  42. /**
  43. * 新增report
  44. *
  45. * @param sysReportData report
  46. * @return 结果
  47. */
  48. public int insertSysReportData(SysReportData sysReportData);
  49. /**
  50. * 修改report
  51. *
  52. * @param sysReport report
  53. * @return 结果
  54. */
  55. public int updateSysReport(SysReport sysReport);
  56. /**
  57. * 修改report
  58. *
  59. * @param sysReportData report
  60. * @return 结果
  61. */
  62. public int updateSysReportData(SysReportData sysReportData);
  63. /**
  64. * 删除report
  65. *
  66. * @param id report主键
  67. * @return 结果
  68. */
  69. public int deleteSysReportById(String id);
  70. /**
  71. * 批量删除report
  72. *
  73. * @param ids 需要删除的数据主键集合
  74. * @return 结果
  75. */
  76. public int deleteSysReportByIds(String[] ids);
  77. /**
  78. * 查询领导账号数
  79. */
  80. public Map selectLeaderAccountCount();
  81. /**
  82. * 查询注册账号数
  83. */
  84. public Map selectRegisterAccountCount();
  85. /**
  86. * 查询活跃账号数
  87. */
  88. public Map selectActiveAccountCount();
  89. /**
  90. * 查询各类传感器数
  91. */
  92. public Map selectDeviceCountGroupByType();
  93. /**
  94. * 查询传感器上报数据数
  95. */
  96. public Map selectDeviceDataCount();
  97. /**
  98. * 查询平台操作日志数
  99. */
  100. public Map selectOperateCount();
  101. public List<String> selectTableName();
  102. /**
  103. * 查询各区县各类传感器数
  104. */
  105. public List<Map<String,Object>> selectDeviceCountGroupByTypeAndQx();
  106. /**
  107. * 查询系统使用情况注册用户、活跃用户、活跃率
  108. */
  109. public Map<String,Object> selectUserActiveAndRate(@Param("timeArr") String timeArr);
  110. }