<resultMap id="commonResult" type="com.gesoft.www.data.model.floOrderT.FloOrderT">
<result property="id" column="id" />
<result property="deposit" column="deposit" />
<result property="isPay" column="isPay" />
<result property="cusId" column="cusId" />
<result property="createDate" column="createDate" />
<result property="delsign" column="delsign" />
<result property="bz" column="bz" />
<association property="customer" javaType="com.gesoft.www.data.model.floCustomerT.FloCustomerT">
<result property="id" column="cusId" />
<result property="name" column="name" />
<result property="phone" column="phone" />
<result property="address" column="address" />
</association>
<association property="customer" select="com.gesoft.www.data.dao.floCustomerT.FloCustomerTDao.selectById" column="{id=cusId}">
</association>
</resultMap>
association两种方式
第一种需要在selectAll中写关联
第二种则使用写好的selectById方法