<resultMap class="XX" id="XX">
<result column="id" property="id" />
<result column="dd" property="dd" />
<result column="cc" property="satl_id" />
<result column="id" property="aa"
select="空间名.getXX" />
<result column="id" property="bb"
select="空间名.getXX" />
</resultMap>
<select id="getxx" resultClass="xx">
<![CDATA[
select * from xx where isdeleted = 0 and xx_id==#value#
]]>
<result column="id" property="id" />
<result column="dd" property="dd" />
<result column="cc" property="satl_id" />
<result column="id" property="aa"
select="空间名.getXX" />
<result column="id" property="bb"
select="空间名.getXX" />
</resultMap>
<select id="getxx" resultClass="xx">
<![CDATA[
select * from xx where isdeleted = 0 and xx_id==#value#
]]>
</select>
class{
AA aa;
List<BB> bb;
}