<resultMap type="XX" >         

    <id property="id" column="colid"/>  

        <id property="name" column="colname"/>  

       <collection property="list" javaType="ArrayList" column="{id = colid,name=colname}" select="getSubXXX"/>  

</resultMap> 

前为别名后为主查询getXXX语句中字段

<select >          SELECT colid,colname FROM table1

 </select> 

 <select > #{id} AND name = #{name}   </select> 

相关文章:

  • 2021-08-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-12-05
  • 2022-01-06
  • 2022-12-23
猜你喜欢
  • 2021-11-09
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案