SysMsgServiceI.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. package cn.com.lzt.sysmsg.service;
  2. import java.io.Serializable;
  3. import java.util.List;
  4. import org.jeecgframework.core.common.model.json.AjaxJson;
  5. import org.jeecgframework.core.common.service.CommonService;
  6. import org.jeecgframework.minidao.annotation.Arguments;
  7. import org.jeecgframework.minidao.annotation.ResultType;
  8. import org.jeecgframework.minidao.pojo.MiniDaoPage;
  9. import cn.com.lzt.sysmsg.dto.SysMsgDto;
  10. import cn.com.lzt.sysmsg.entity.SysMsgEntity;
  11. import cn.com.lzt.sysmsgdetail.entity.SysMsgDetailEntity;
  12. public interface SysMsgServiceI extends CommonService{
  13. public void delete(SysMsgEntity entity) throws Exception;
  14. public Serializable save(SysMsgEntity entity) throws Exception;
  15. public void saveOrUpdate(SysMsgEntity entity) throws Exception;
  16. /**
  17. * 系统消息保存总方法
  18. * @author zbw
  19. * 2017-11-30
  20. * @param sysMsg
  21. * @return
  22. * @throws Exception
  23. */
  24. // public AjaxJson saveSysMsgAndSysMsgDetail(SysMsgEntity sysMsg) throws Exception;
  25. /**
  26. * 添加修改 系统消息
  27. * @author zbw
  28. * 2017-11-30
  29. * @param sysMsg
  30. * @return
  31. * @throws Exception
  32. */
  33. public AjaxJson saveSysMsg(SysMsgEntity sysMsg) throws Exception;
  34. /**
  35. * 添加修改 系统消息详细
  36. * @author zbw
  37. * 2017-11-30
  38. * @param sysMsgDetail
  39. * @return
  40. * @throws Exception
  41. */
  42. public AjaxJson saveSysMsgDetail(SysMsgDetailEntity sysMsgDetail) throws Exception;
  43. /**
  44. * 根据组织机构id查询用户
  45. * 包含本级及以下所有节点
  46. * @param orgId
  47. * @return
  48. */
  49. public List<String> getUserIdListByOrgId(String orgId);
  50. /**
  51. * 删除 系统消息
  52. * 批量
  53. * @author zbw
  54. * 2017-11-30
  55. * @param sysMsg
  56. * @return
  57. * @throws Exception
  58. */
  59. public AjaxJson doBatchDelSysMsg(String ids) throws Exception;
  60. /**
  61. * 删除 系统消息详细
  62. * 批量
  63. * @author zbw
  64. * 2017-11-30
  65. * @param sysMsgDetail
  66. * @return
  67. * @throws Exception
  68. */
  69. public AjaxJson doBatchDelSysMsgDetail(String ids) throws Exception;
  70. /**
  71. * 导出
  72. * 系统消息表
  73. * 首页数据全部展示
  74. * 不分页
  75. * @author zbw
  76. * 2017-11-5
  77. * @param arrangeDutyDto
  78. * @param page
  79. * @param rows
  80. * @param authSql
  81. * @return
  82. */
  83. public List<SysMsgDto> getSysMsgDtoExport(SysMsgDto sysMsgDto, String authSql);
  84. /**
  85. * 根据用户id查询数据
  86. * 我的消息页面
  87. * 系统消息表
  88. * 分页
  89. * @author zbw
  90. * 2017-11-5
  91. * @param arrangeDutyDto
  92. * @param page
  93. * @param rows
  94. * @param authSql
  95. * @return
  96. */
  97. public MiniDaoPage<SysMsgDto> getMyMsgDtoPage(
  98. SysMsgDto sysMsgDto, int page, int rows, String authSql);
  99. /**
  100. * 批量发布消息
  101. * @author zbw
  102. * 2017-12-1
  103. * @param ids
  104. * @return
  105. * @throws Exception
  106. */
  107. public AjaxJson doBatchPublishSysMsg(String ids) throws Exception;
  108. /**
  109. *
  110. * 系统消息表
  111. * 首页数据全部展示
  112. * 分页
  113. * @author zbw
  114. * 2017-11-5
  115. * @param page
  116. * @param rows
  117. * @param authSql
  118. * @return
  119. */
  120. public MiniDaoPage<SysMsgDto> getSysMsgDtoPage(SysMsgDto sysMsgDto, int page, int rows, String authSql);
  121. /**
  122. * 添加系统消息
  123. * @author 刘梦祥
  124. * @date 2022年8月5日14:40:36
  125. * @param msgTitle 标题
  126. * @param msgContent 内容
  127. * @param sendId 发送人userid
  128. * @param receivedId 接收人userid
  129. */
  130. void saveSysMsg(String msgTitle, String msgContent, String sendId, String receivedId) throws Exception;
  131. /**
  132. * 根据接收人科室添加系统消息
  133. * @author 刘梦祥
  134. * @date 2022年8月5日14:40:36
  135. * @param msgTitle 标题
  136. * @param msgContent 内容
  137. * @param sendId 发送人userid
  138. * @param receivedId 接收人userid
  139. */
  140. void saveSysMsgToDepart(String msgTitle, String msgContent, String sendId, String receivedId) throws Exception;
  141. }