There is a query in my Mybatis containing an IN clause which is basically a set of Id\'s ( Integers)
I am now stuck on how can I pass an Integer array to this IN cla
List distinctID = (List) getSqlSession().selectOne("dataMapper.getUniqueData", uniqueIDList);
Send the list of unique id
select distinct ID from table a where a.id in #{item}
When using an List, index will be the number of current iteration and value item will be the element retrieved in this iteration