“linengliang”
2023-10-29 db1d7484b7114f9f91decef684280866dac34dfe
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysAnnouncementSendMapper.xml
@@ -102,6 +102,27 @@
         #{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>