MessageDataDao.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. package cn.com.lzt.message.data.dao;
  2. import cn.com.lzt.message.data.dto.MessageStatisReceiveDto;
  3. import cn.com.lzt.message.data.dto.MessageStatisSendDto;
  4. import cn.com.lzt.message.personal.entity.MPersonalMessageEntity;
  5. import org.jeecgframework.minidao.annotation.Arguments;
  6. import org.jeecgframework.minidao.annotation.MiniDao;
  7. import org.jeecgframework.minidao.annotation.ResultType;
  8. import org.jeecgframework.minidao.pojo.MiniDaoPage;
  9. import org.jeecgframework.web.system.pojo.base.TSDepart;
  10. import org.jeecgframework.web.system.pojo.base.TSUser;
  11. import java.util.List;
  12. import java.util.Map;
  13. /**
  14. * 消息数据
  15. *
  16. */
  17. @MiniDao
  18. public interface MessageDataDao {
  19. /**
  20. * 查询所有未离职员工
  21. */
  22. @ResultType(TSUser.class)
  23. public List<TSUser> getAllUser();
  24. /**
  25. * 查询id对应员工
  26. */
  27. @Arguments({"userList"})
  28. @ResultType(TSUser.class)
  29. public List<TSUser> getUserByIds(List<String> userList);
  30. /**
  31. * 查询角色员工
  32. */
  33. @Arguments({"roleList"})
  34. @ResultType(TSUser.class)
  35. public List<TSUser> getRoleUser(List<String> roleList);
  36. /**
  37. * 查询分组员工
  38. */
  39. @Arguments({"groupList"})
  40. @ResultType(TSUser.class)
  41. public List<TSUser> getRegularGroupUser(List<String> groupList);
  42. /**
  43. * 查询部门员工
  44. */
  45. @Arguments({"depList"})
  46. @ResultType(TSUser.class)
  47. public List<TSUser> getDepUser(List<String> depList);
  48. /**
  49. * 查询部门
  50. */
  51. @Arguments({"departName"})
  52. @ResultType(TSDepart.class)
  53. public List<TSDepart> getDepart(String departName);
  54. /**
  55. * 查询用户部门
  56. */
  57. @Arguments({"userId"})
  58. @ResultType(TSDepart.class)
  59. public TSDepart getUserDep(String userId);
  60. /**
  61. *接收统计
  62. * @param title 标题
  63. * @return
  64. */
  65. @Arguments({"title","startTime","endTime"})
  66. @ResultType(MessageStatisReceiveDto.class)
  67. public List<MessageStatisReceiveDto> statisReceive(String title, String startTime, String endTime);
  68. /**
  69. * 发送统计 ,按类型分组
  70. * @param noticeType
  71. * @param startTime
  72. * @param endTime
  73. * @return
  74. */
  75. @Arguments({"noticeType","startTime","endTime"})
  76. @ResultType(MessageStatisSendDto.class)
  77. public List<MessageStatisSendDto> statisSendGroupBySendType(String noticeType,String startTime,String endTime);
  78. /**
  79. * 发送统计 ,按部门分组
  80. */
  81. @Arguments({"depName","startTime","endTime"})
  82. @ResultType(MessageStatisSendDto.class)
  83. public List<MessageStatisSendDto> statisSendGroupByDep(String depName, String startTime, String endTime);
  84. /**
  85. * 发送统计 ,按用户分组
  86. */
  87. @Arguments({"realname","startTime","endTime"})
  88. @ResultType(MessageStatisSendDto.class)
  89. public List<MessageStatisSendDto> statisSendGroupByUser(String realname, String startTime, String endTime);
  90. /**
  91. *发送者查看发送统计
  92. * @param messageId
  93. * @return
  94. */
  95. @Arguments({"messageId","page","rows"})
  96. public MiniDaoPage<Map<String,Object>> messageUserSendLogView(String messageId, Integer page, Integer rows);
  97. @Arguments({"userId","noticeType","isRead","page","rows"})
  98. @ResultType(MPersonalMessageEntity.class)
  99. public MiniDaoPage<MPersonalMessageEntity> getUserMessage(String userId, String noticeType, Integer isRead,Integer page, Integer rows);
  100. }