更新时间 2018-5-19
第一次写博客,先记下自己遇到的坑.后面不断完善.
collection一对多查询
<resultMap id="resultTestMap" type="resultTest"> <id property="resulttestid" column="resulttestid"/> <result property="knr" column="knr"/> <collection property="ptbList" ofType="ptb" column="resulttestid" select="selectPtb"/> </resultMap> <resultMap id="ptbMap" type="ptb"> <result property="ptbno" column="ptbno"/> <result property="resulttestid" column="resulttestid"/> </resultMap> <select id="selectPtb" paramet