mybatis查询一个bean时,resultMap和resultType区别(待解决)

今天做一个查询

<select id="getShowResTree" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List" /> FROM myt_growth_clz_config WHERE status=1
</select>
返回全部结果

 

<select id="getShowResTree" resultType="java.util.HashMap">
SELECT <include refid="Base_Column_List" /> FROM myt_growth_clz_config WHERE status=1
</select>
部分字段没法返回 clzKey propId



猜你喜欢

转载自www.cnblogs.com/mfser/p/9008409.html