DilNoticeMapper.java 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. package com.steerinfo.dil.mapper;
  2. import com.steerinfo.dil.model.DilNotice;
  3. import com.steerinfo.framework.mapper.IBaseMapper;
  4. import java.math.*;
  5. import java.util.List;
  6. import java.util.Map;
  7. import org.apache.ibatis.annotations.Mapper;
  8. import org.apache.ibatis.annotations.Select;
  9. @Mapper
  10. public interface DilNoticeMapper extends IBaseMapper<DilNotice, BigDecimal> {
  11. List<Map<String, Object>> getNoticeList(Map<String, Object> mapVal);
  12. //承运商查看公告
  13. List<Map<String, Object>> getCarrierNoticeList(Map<String, Object> mapVal);
  14. //id自增
  15. @Select("select seq_DIL_NOTICE.nextval from dual")
  16. BigDecimal selectNoticeId();
  17. List<Map<String, Object>> getNoticeById(BigDecimal id);
  18. List<Map<String, Object>> getNoticeById1(BigDecimal id);
  19. //销售公司查看公告
  20. List<Map<String, Object>> getMarketingNoticeList(Map<String, Object> mapVal);
  21. //收货客户查看公告
  22. List<Map<String, Object>> getClientNoticeList(Map<String, Object> mapVal);
  23. //根据不同的用户发放不同的最新消息
  24. List<Map<String, Object>> getNewNoticeByPermission(BigDecimal permission);
  25. /**
  26. * @author:zyf
  27. * @version:1.0
  28. * @Date:2022-10-14
  29. * @Description:
  30. */
  31. String getStatus(BigDecimal id);
  32. /**
  33. * @author:zyf
  34. * @version:1.0
  35. * @Date:
  36. * @Description: 根据不同的用户发放通知
  37. */
  38. List<Map<String, Object>> getNoticeData(String userId);
  39. /**
  40. * @author:zyf
  41. * @version:1.0
  42. * @Date:
  43. * @Description: 根据不同的用户发放通知1
  44. */
  45. List<Map<String, Object>> getNoticeData1();
  46. /**
  47. * @author:zyf
  48. * @version:1.0
  49. * @Date:2022-09-23
  50. * @Description:新增通知(承运商,销售客户,收货客户)
  51. */
  52. int insertIntoNoticeUser(DilNotice dilNotice);
  53. /**
  54. * @author:zyf
  55. * @version:1.0
  56. * @Date:2022-09-23
  57. * @Description:新增通知(所有人)
  58. */
  59. int insertIntoNoticeUser1(DilNotice dilNotice);
  60. /**
  61. * @author:zyf
  62. * @version:1.0
  63. * @Date:2022-09-23
  64. * @Description:更新通知的相关信息
  65. */
  66. int updateNotice(DilNotice dilNotice);
  67. /**
  68. * @author:zyf
  69. * @version:1.0
  70. * @Date:2022-09-23
  71. * @Description:删除与该通知有关用户中间表的信息
  72. */
  73. int deleteNoticeUsers(BigDecimal id);
  74. /**
  75. * @author:zyf
  76. * @version:1.0
  77. * @Date:2022-09-23
  78. * @Description:删除与该通知表的信息
  79. */
  80. int deleteNotice(BigDecimal id);
  81. /**
  82. * @author:zyf
  83. * @version:1.0
  84. * @Date:2022-09-24
  85. * @Description:根据通知ID来查询orgcode
  86. */
  87. String getorgCode(BigDecimal noticeid);
  88. /**
  89. * @author:zyf
  90. * @version:1.0
  91. * @Date:2022-09-26
  92. * @Description:根据通知ID来查询历史orgcode
  93. */
  94. DilNotice gethistoryorgCode(BigDecimal noticeid);
  95. /**
  96. * @author:zyf
  97. * @version:1.0
  98. * @Date:2022-09-24
  99. * @Description:根据用户id来更新状态
  100. */
  101. int updatestatus(String userId,int noticeId);
  102. /**
  103. * @author:zyf
  104. * @version:1.0
  105. * @Date:2022-10-14
  106. * @Description:
  107. */
  108. int gettaskAllNum(String userId);
  109. /**
  110. * @author:zyf
  111. * @version:1.0
  112. * @Date:2022-09-26
  113. * @Description:根据用户ID来查询名字
  114. */
  115. String queryName(String userId);
  116. /**
  117. * @author:zyf
  118. * @version:1.0
  119. * @Date:2022-10-14
  120. * @Description:删除历史数据
  121. */
  122. int updatehistorydata(DilNotice dilNotice);
  123. /**
  124. * @author:zyf
  125. * @version:1.0
  126. * @Date:2022-10-14
  127. * @Description:更新一下时间
  128. */
  129. int updateTime(DilNotice dilNotice);
  130. /**
  131. * @author:zyf
  132. * @version:1.0
  133. * @Date:2022-10-14
  134. * @Description:修改数据
  135. */
  136. int modifyData(DilNotice dilNotice);
  137. List<Map<String, Object>> getNoticeAll(Map<String, Object> mapValue);
  138. /**
  139. * 已读所有通知,针对特定插入用户
  140. * @return
  141. */
  142. int readAll(Map<String, Object> map);
  143. }