| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <select id="getPrimaryInfo" resultType="org.jeecg.modules.system.entity.SysAnnouncementSend"> |
| | | select |
| | | t1.id id, |
| | | t1.annt_id anntId, |
| | | t1.user_id userId, |
| | | t1.read_flag readFlag, |
| | | t2.msg_content msgContent, |
| | | t2.msg_category msgCategory |
| | | from |
| | | sys_announcement_send t1 |
| | | left join sys_announcement t2 |
| | | on t1.annt_id = t2.id |
| | | where t1.read_flag = '0' |
| | | and t1.user_id = #{userId} |
| | | <if test="msgCategoryList.size != 0"> |
| | | and t2.msg_category in ( |
| | | <foreach item="msgCategory" collection="msgCategoryList" separator=","> |
| | | #{msgCategory} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |