1. 程式人生 > >myBatista批量查詢

myBatista批量查詢

<select id="queryCompanyByDistrict" resultType="WyCompany">
SELECT * FROM wy_company
<where>
<if test="split!=null">
<foreach collection="split" separator="or" item="businessCode" open="(" close=")">
district LIKE '%${businessCode}%'
</foreach>
</if>
</where>
</select>