根据数组查询数据

<select id="selectCountByOrgCodes" parameterType="java.util.List">
SELECT COUNT(ORG_G_CODE) FROM BM_GATHER_REF where ORG_G_CODE in
  <foreach item="idItem" collection="array" open="(" separator="," close=")">
#{idItem}
</foreach>
</select>

你可能感兴趣的:(数组)