| | |
| | | <if test="announcementSendModel.bizSource !=null and announcementSendModel.bizSource =='isNoBpm'"> |
| | | and (sa.bus_type != 'bpm' or sa.bus_type is null) |
| | | </if> |
| | | <if test="announcementSendModel.msgCategory !=null and announcementSendModel.msgCategory != ''"> |
| | | and sa.msg_category = #{announcementSendModel.msgCategory} |
| | | </if> |
| | | <if test="announcementSendModel.msgCategoryList.size != 0"> |
| | | and sa.msg_category in ( |
| | | <foreach item="msgCategory" collection="announcementSendModel.msgCategoryList" separator=","> |
| | | #{msgCategory} |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | order by sas.read_flag,sa.send_time desc |
| | | </select> |
| | | |
| | |
| | | <select id="findLastMessage" resultType="org.jeecg.modules.system.entity.SysAnnouncement"> |
| | | SELECT TOP 1 * FROM sys_announcement WHERE msg_content = #{messageContent} ORDER BY create_time DESC; |
| | | </select> |
| | | <select id="getMessageType" resultType="java.lang.String"> |
| | | SELECT DISTINCT |
| | | msg_category |
| | | FROM |
| | | sys_announcement |
| | | </select> |
| | | |
| | | </mapper> |