<?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.house365.ws.dao.mapper.DictionaryMapper">

    <resultMap id="dictionary" type="com.house365.beans.entity.DictionaryEntity">
        <result property="id" column="id" />
        <result property="dicKey" column="dic_key" />
        <result property="dicValue" column="dic_value" />
        <result property="dicName" column="dic_name" />
        <result property="city" column="city" />
    </resultMap>

    <select id="getNoApproximateConfig" resultMap="dictionary" parameterType="map">
        select id,dic_key ,dic_value,dic_name,city
        from dictionary
        where dic_key = #{dicKey}
        <if test="city != null and city !='' ">
            AND city = #{city}
        </if>
    </select>

</mapper>