controller里面写法
Map<String,Object> map = new HashMap<String,Object>();
map.put("title", title);
map.put("superclassId", superclassId);
map.put("subclassId", subclassId);
List<Item> its=im.searchTitle(map);
mybatis里面写法
<select id="searchTitle" parameterType="java.util.Map" resultMap="itemMap">
select * from item where title=#{title} and superclass_id=#{superclassId} and subclass_id=#{subclassId}
</select>