SysMsgMinidao_getSysMsgDtoPage.sql 582 B

123456789101112131415161718192021
  1. <#-- 系统消息表--首页数据全部展示--分页-->
  2. select
  3. sm.id,
  4. sm.msg_title as msgTitle,
  5. sm.msg_content as msgContent,
  6. sm.send_id as sendId,
  7. sm.send_status as sendStatus,
  8. sm.create_date as createDate,
  9. sm.send_time as sendTime,
  10. sm.is_pushapp as isPushapp,
  11. sm.received_range as receivedRange,
  12. sm.busid as busid
  13. from t_bus_sys_msg sm where 1 = 1
  14. <#if (sysMsgDto.msgTitle )?? && sysMsgDto.msgTitle ?length gt 0>
  15. and sm.msg_title like CONCAT('%', :sysMsgDto.msgTitle ,'%')
  16. </#if>
  17. and sm.msg_type='0'
  18. ORDER BY
  19. sm.send_status asc,send_time desc,create_date desc