<resultMap id="***ResultMap" type="GroupDO"> <id column="source_id" jdbcType="BIGINT" property="sourceId"/> <collection property="bIdList" ofType="Long" javaType="ArrayList"> <result column="b_id"/> </collection> </resultMap>
<sql id="SourceBuGroup_Column_List"> source_id,b_id </sql>
public class GroupDO implements Serializable { private Long sourceId; private List<Long> bIdList; }