| | |
| | | <sql id="Base_Column_List"> |
| | | id, title, content, type, create_time, create_by, update_time, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.system.NotificationVO"> |
| | | select * from oa_notification |
| | | where 1=1 |
| | | <if test="query.title != null and query.title != ''"> |
| | | and title like concat('%',#{query.title},'%') |
| | | </if> |
| | | <if test="deptIds != null and deptIds.size() > 0"> |
| | | AND ( |
| | | <foreach collection="deptIds" item="deptId" separator=" OR "> |
| | | FIND_IN_SET(#{deptId}, dept_ids) |
| | | </foreach> |
| | | ) |
| | | </if> |
| | | AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | </mapper> |