经过我的试验,发现这个参数彷佛没什么用,mapper中的参数列表为@Param("insurerIdList") List<String> insurerIdList, @Param("startMonth") String startDatesql
这个能够说是两种类型的,可是对于mybatis都同样,并且,parameterType写与不写,均可以,甚至我写成parameterType='int'也是能够执行的。mybatis
parameterType | The fully qualified class name or alias for the parameter that will be passed into this statement. This attribute is optional because MyBatis can calculate the TypeHandler to use out of the actual parameter passed to the statement. Default is unset. |
官网上这样解释的,这个只是个别名,可是也能够不写,它本身能够对应上的,并传给sql的statement中使用。app