35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
|
|
<?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.yfd.platform.env.mapper.SdHbrvDicMapper">
|
||
|
|
|
||
|
|
<resultMap id="BaseResultMap" type="com.yfd.platform.env.domain.SdHbrvDic">
|
||
|
|
<id column="HBRVCD" property="hbrvcd"/>
|
||
|
|
<id column="BASEID" property="baseid"/>
|
||
|
|
<result column="HBRVNM" property="hbrvnm"/>
|
||
|
|
<result column="GRD" property="grd"/>
|
||
|
|
<result column="PATH" property="path"/>
|
||
|
|
<result column="ORDER_INDEX" property="orderIndex"/>
|
||
|
|
<result column="ENABLED" property="enabled"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
<select id="selectByBaseid" resultMap="BaseResultMap">
|
||
|
|
SELECT * FROM SD_HBRV_DIC
|
||
|
|
WHERE BASEID = #{baseid}
|
||
|
|
ORDER BY ORDER_INDEX ASC
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectByPhycd" resultMap="BaseResultMap">
|
||
|
|
SELECT * FROM SD_HBRV_DIC
|
||
|
|
WHERE HBRVCD = #{hbrvcd}
|
||
|
|
AND BASEID = #{baseid}
|
||
|
|
ORDER BY ORDER_INDEX ASC
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<select id="selectEnabledList" resultMap="BaseResultMap">
|
||
|
|
SELECT * FROM SD_HBRV_DIC
|
||
|
|
WHERE ENABLED = 1
|
||
|
|
ORDER BY ORDER_INDEX ASC
|
||
|
|
</select>
|
||
|
|
|
||
|
|
</mapper>
|