这是错误:
SQL: SELECT node_id FROM access_layer where member_id IN ( ? , ? , ? , ? , ? , ? )
### Cause: java.lang.UnsupportedOperationException] with root cause
controller的语句:
List<String> sonNodes = accessService.selectByIn(sons);
mapper.xml:
<select id="selectByIn" parameterType="java.util.List" resultType="java.util.List">
SELECT node_id FROM access_layer where member_id IN
<foreach collection="list" item="member_id" index="index" open="(" separator="," close=")">
#{member_id}
</foreach>
</select>
dao:
public List<String> selectByIn(List<String> member_id);