<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.busi.mapper.BusiNoticeMsgMapper">
    
    <resultMap type="BusiNoticeMsg" id="BusiNoticeMsgResult">
        <result property="id"    column="id"    />
        <result property="noticeId"    column="notice_id"    />
        <result property="userId"    column="user_id"    />
        <result property="content"    column="content"    />
        <result property="creator"    column="creator"    />
        <result property="createTime"    column="create_time"    />
        <result property="updater"    column="updater"    />
        <result property="updateTime"    column="update_time"    />
        <result property="delFlag"    column="del_flag"    />
    </resultMap>

    <sql id="selectBusiNoticeMsgVo">
        select id, notice_id, user_id, content, creator, create_time, updater, update_time, del_flag from dl_busi_notice_msg
    </sql>

    <select id="queryListPage" parameterType="BusiNoticeMsg" resultMap="BusiNoticeMsgResult">
        <include refid="selectBusiNoticeMsgVo"/>
        <where>
                        <if test="entity.noticeId != null  and entity.noticeId != ''"> and notice_id like concat('%', #{entity.noticeId}, '%')</if>
                        <if test="entity.userId != null "> and user_id like concat('%', #{entity.userId}, '%')</if>
        </where>
    </select>
</mapper>