-----------------ibatis取不到数据---------------
<resultMap id="frResult" class="Friend">
<result property="id" column="ID"/>
<result property="uId" column="U_ID"/>
<result property="fId" column="F_ID"/>
</resultMap>
<resultMap id="fsResult" class="java.util.HashMap">
<result property="id" column="ID"/>
<result property="uId" column="U_ID"/>
<result property="fId" column="F_ID"/>
</resultMap>
<select id="getFById" parameterClass="java.lang.Integer" resutlMap="frResult">
<![CDATA[
select * from fs where id=#value#
]]>
</select>
<select id="getFList" parameterClass="java.lang.Integer" resutlMap="fsResult">
<![CDATA[
select * from fs where u_id=#value#
]]>
</select>
fs表确实有数据 可是取出来的数据为空!!
请大侠们看看问题出在哪里??
------解决方案--------------------select * from fs where id=#id# 试试
或者
<select id="getFById" parameterClass="String" resutlMap="frResult">
<![CDATA[
select * from fs where id=#value#
]]>
</select>
------解决方案--------------------把你DAO层的代码贴上来一起看
------解决方案--------------------up