<?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="cn.cecep.talroad.mapper.BEnterpriseIrEesTypeMapper">

    <resultMap type="cn.cecep.talroad.domain.BEnterpriseIrEesType" id="BEnterpriseIrEesTypeResult">
        <result property="id"    column="id"    />
        <result property="eesClassify"    column="ees_classify"    />
        <result property="eesType"    column="ees_type"    />
        <result property="eesName"    column="ees_name"    />
        <result property="eesTitle"    column="ees_title"    />
    </resultMap>


    <sql id="selectBEnterpriseIrEesTypeVo">
        select id, ees_classify, ees_type, ees_name, ees_title from b_enterprise_ir_ees_type
    </sql>

    <select id="selectBEnterpriseIrEesTypeList" parameterType="cn.cecep.talroad.domain.BEnterpriseIrEesType" resultMap="BEnterpriseIrEesTypeResult">
        <include refid="selectBEnterpriseIrEesTypeVo"/>
        <where>
            <if test="eesClassify != null  and eesClassify != ''"> and ees_classify = #{eesClassify}</if>
            <if test="eesType != null  and eesType != ''"> and ees_type = #{eesType}</if>
            <if test="eesName != null  and eesName != ''"> and ees_name like concat('%', #{eesName}, '%')</if>
            <if test="eesTitle != null  and eesTitle != ''"> and ees_title = #{eesTitle}</if>
        </where>
    </select>

</mapper>
