2ec172e1ae2673614955cdd74a6a597cf71f7667.svn-base 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="org.jeecg.modules.system.mapper.SysAnnouncementMapper">
  4. <resultMap id="SysAnnouncement" type="org.jeecg.modules.system.entity.SysAnnouncement" >
  5. <result column="id" property="id" jdbcType="VARCHAR"/>
  6. <result column="titile" property="titile" jdbcType="VARCHAR"/>
  7. <result column="msg_content" property="msgContent" jdbcType="VARCHAR"/>
  8. <result column="start_time" property="startTime" jdbcType="TIMESTAMP"/>
  9. <result column="end_time" property="endTime" jdbcType="TIMESTAMP"/>
  10. <result column="sender" property="sender" jdbcType="VARCHAR"/>
  11. <result column="priority" property="priority" jdbcType="VARCHAR"/>
  12. <result column="msg_category" property="msgCategory" jdbcType="VARCHAR"/>
  13. <result column="msg_type" property="msgType" jdbcType="VARCHAR"/>
  14. <result column="send_status" property="sendStatus" jdbcType="VARCHAR"/>
  15. <result column="send_time" property="sendTime" jdbcType="VARCHAR"/>
  16. <result column="cancel_time" property="cancelTime" jdbcType="VARCHAR"/>
  17. <result column="del_flag" property="delFlag" jdbcType="VARCHAR"/>
  18. <result column="create_by" property="createBy" jdbcType="VARCHAR"/>
  19. <result column="create_time" property="createTime" jdbcType="TIMESTAMP"/>
  20. <result column="update_by" property="updateBy" jdbcType="VARCHAR"/>
  21. <result column="update_time" property="updateTime" jdbcType="TIMESTAMP"/>
  22. <result column="user_ids" property="userIds" jdbcType="VARCHAR"/>
  23. <result column="bus_type" property="busType" jdbcType="VARCHAR"/>
  24. <result column="bus_id" property="busId" jdbcType="VARCHAR"/>
  25. <result column="open_type" property="openType" jdbcType="VARCHAR"/>
  26. <result column="open_page" property="openPage" jdbcType="VARCHAR"/>
  27. </resultMap>
  28. <select id="querySysCementListByUserId" parameterType="String" resultMap="SysAnnouncement">
  29. select * from sys_announcement
  30. where send_status = '1'
  31. and del_flag = '0'
  32. and msg_category = #{msgCategory}
  33. and id IN ( select annt_id from sys_announcement_send where user_id = #{userId} and read_flag = '0')
  34. order by create_time DESC
  35. </select>
  36. </mapper>