<selectid="selectByTypeAndStatus"parameterType="map"resultMap="BaseResultMap">
select
<includerefid="Base_Column_List" />
from test
where type = #{type,jdbcType=TINYINT}
and status = #{status,jdbcType=TINYINT}
limit 1
</select>
<selectid="selectByName"parameterType="java.lang.String"resultMap="BaseResultMap">
select
<includerefid="Base_Column_List" />
from test
where name = #{name,jdbcType=VARCHAR}
limit 1
</select>