sqlMap中resultMap result column配置多个参数的用法

 

<resultMap id="get_LinkUp_result" class="gds.jap.client.LinkUpInfoDTO">
    <result property="linkupID" column='linkupID'/>
    <result property="linkUpdate" column='linkUpdate'/>
    <result property="linkWay" column='linkWay'/>
    <result property="linkContent" column='linkContent'/>
    <result property="isNeedDeal" column='isNeedDeal'/>
    <result property="overDate" column='overDate'/>
    <result property="verdict" column='verdict'/>
    <result property="createPersonID" column='createPersonID'/>
    <result property="isDealFinish" column='isDealFinish'/>
    <result property="linkUpUser" column='linkUpUser'/>
    <result property="accessoryList" column='{linkupID=linkupID,createPersonID=createPersonID}' select="client.findAccessoryByClientUserID"/>
    </resultMap>

对应调用的如下写法
<select id="findAccessoryByClientUserID" parameterClass="java.util.HashMap" resultClass="gds.jap.client.AccessoryDTO">
     SELECT ACCESSORYID, FILENAME, SENDDATE,ACCESSORYINTRO, RECIPIENT, CREATEPERSONID,
   CREATETIME, LINKUPID FROM  GT_ACCESSORY WHERE LINKUPID=#linkupID# and CREATEPERSONID=#createPersonID#
 </select>


你可能感兴趣的:(Class)