1、多参数传递-注解方式
接口类A:
/** * 查下一页 */ public List<SentenceKind> findNext(@Param("row") int row, @Param("rowSnId") String rowSnId);
Mapper.xml
注意不需要声明parameterType
<select id="findNext" resultMap="SentenceKindResultMap">
select *
from cloud_sentence_kind where sn_id > #{rowSnId} order by sn_id limit #{row};
</select>