mybatis 关联映射传递多参数方法

<resultMap type="com.secoo.my.bean.OrderItemComment" id="orderItemResult">
  <id column="id" property="id"/>
  <result column="_productCode" property="productCode"/>
  <result column="_productCategoryId" property="productCategoryId"/>
  <collection property="commentList" column="{productCode=_productCode,userId=userId,orderId=orderId}" select="com.secoo.my.mapper.erp.ReCommentMapper.queryCommentByUIDOIDPID"></collection>
  <collection property="commentTagList" column="_productCategoryId" select="com.secoo.my.mapper.erp.ReCommentTagMapper.queryCommentTagsByCategoryId"></collection>
 </resultMap>

posted @ 2015-01-26 18:03  zbjice  阅读(293)  评论(0编辑  收藏  举报