List<Long>list2s= itemCatMapper.queryIdsByPid(id);
<select id="queryIdsByPid" resultType="long">
SELECT id FROM tb_item_cat WHERE parent_id=#{id}
</select>
List<Long>list2s= itemCatMapper.queryIdsByPid(id);
<select id="queryIdsByPid" resultType="long">
SELECT id FROM tb_item_cat WHERE parent_id=#{id}
</select>