mapper.xml
<select id="selectHxxxDE" resultMap="BaseResultMap">
SELECT id,
title, type, release_id , ...
FROM
mp_information i WHERE
release_id = ${id} and type = ${type}
</select>
<resultMap id="BaseResultMap" type="com.xxx.rmation">
<id column="id" property="id" jdbcType="INTEGER" />
...
</resultMap>
mapper接口
xxx selecxxxDE(@Param(value = "id") String id,@Param(value = "type") String type);
参考: https://www.cnblogs.com/zhuawang/p/5927851.html