經過我的試驗,發現這個參數彷佛沒什麼用,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