| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- package cn.com.lzt.message.data.dao;
- import cn.com.lzt.message.data.dto.MessageStatisReceiveDto;
- import cn.com.lzt.message.data.dto.MessageStatisSendDto;
- import cn.com.lzt.message.personal.entity.MPersonalMessageEntity;
- import org.jeecgframework.minidao.annotation.Arguments;
- import org.jeecgframework.minidao.annotation.MiniDao;
- import org.jeecgframework.minidao.annotation.ResultType;
- import org.jeecgframework.minidao.pojo.MiniDaoPage;
- import org.jeecgframework.web.system.pojo.base.TSDepart;
- import org.jeecgframework.web.system.pojo.base.TSUser;
- import java.util.List;
- import java.util.Map;
- /**
- * 消息数据
- *
- */
- @MiniDao
- public interface MessageDataDao {
- /**
- * 查询所有未离职员工
- */
- @ResultType(TSUser.class)
- public List<TSUser> getAllUser();
- /**
- * 查询id对应员工
- */
- @Arguments({"userList"})
- @ResultType(TSUser.class)
- public List<TSUser> getUserByIds(List<String> userList);
- /**
- * 查询角色员工
- */
- @Arguments({"roleList"})
- @ResultType(TSUser.class)
- public List<TSUser> getRoleUser(List<String> roleList);
- /**
- * 查询分组员工
- */
- @Arguments({"groupList"})
- @ResultType(TSUser.class)
- public List<TSUser> getRegularGroupUser(List<String> groupList);
- /**
- * 查询部门员工
- */
- @Arguments({"depList"})
- @ResultType(TSUser.class)
- public List<TSUser> getDepUser(List<String> depList);
- /**
- * 查询部门
- */
- @Arguments({"departName"})
- @ResultType(TSDepart.class)
- public List<TSDepart> getDepart(String departName);
- /**
- * 查询用户部门
- */
- @Arguments({"userId"})
- @ResultType(TSDepart.class)
- public TSDepart getUserDep(String userId);
- /**
- *接收统计
- * @param title 标题
- * @return
- */
- @Arguments({"title","startTime","endTime"})
- @ResultType(MessageStatisReceiveDto.class)
- public List<MessageStatisReceiveDto> statisReceive(String title, String startTime, String endTime);
- /**
- * 发送统计 ,按类型分组
- * @param noticeType
- * @param startTime
- * @param endTime
- * @return
- */
- @Arguments({"noticeType","startTime","endTime"})
- @ResultType(MessageStatisSendDto.class)
- public List<MessageStatisSendDto> statisSendGroupBySendType(String noticeType,String startTime,String endTime);
- /**
- * 发送统计 ,按部门分组
- */
- @Arguments({"depName","startTime","endTime"})
- @ResultType(MessageStatisSendDto.class)
- public List<MessageStatisSendDto> statisSendGroupByDep(String depName, String startTime, String endTime);
- /**
- * 发送统计 ,按用户分组
- */
- @Arguments({"realname","startTime","endTime"})
- @ResultType(MessageStatisSendDto.class)
- public List<MessageStatisSendDto> statisSendGroupByUser(String realname, String startTime, String endTime);
- /**
- *发送者查看发送统计
- * @param messageId
- * @return
- */
- @Arguments({"messageId","page","rows"})
- public MiniDaoPage<Map<String,Object>> messageUserSendLogView(String messageId, Integer page, Integer rows);
- @Arguments({"userId","noticeType","isRead","page","rows"})
- @ResultType(MPersonalMessageEntity.class)
- public MiniDaoPage<MPersonalMessageEntity> getUserMessage(String userId, String noticeType, Integer isRead,Integer page, Integer rows);
- }
|