1.多参数不能使用parameterType,SQL语句中直接用#{index},是第几个就用第几个的索引,索引从0开始

例:

dao中

  void userDeleteById(int startId, int endId);

mapper.xml中

<delete id="userDeleteById">
delete from users where id between #{0} and #{1}
</delete>
<!--此处#{0}表示startId,#{1}表示endId-->