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>app

相關文章
相關標籤/搜索