<?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.keyware.shandan.system.mapper.SysDictMapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.keyware.shandan.system.entity.SysDict">
        <id column="ID" property="id"/>
        <result column="DICT_CODE" property="dictCode"/>
        <result column="TYPE_ID" property="typeId"/>
        <result column="DICT_NAME" property="dictName"/>
        <result column="DICT_VALUE" property="dictValue"/>
        <result column="DICT_DESC" property="dictDesc"/>
        <result column="DICT_ORDER" property="dictOrder"/>
        <result column="DICT_STATE" property="dictState"/>
        <result column="CREATE_USER" property="createUser"/>
        <result column="CREATE_TIME" property="createTime"/>
        <result column="MODIFY_USER" property="modifyUser"/>
        <result column="MODIFY_TIME" property="modifyTime"/>

        <association property="type" column="TYPE_ID"
                     select="com.keyware.shandan.system.mapper.SysDictTypeMapper.selectById"/>
    </resultMap>
</mapper>
