<select id="selectByAuntIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from aunt_leave_info
where leave_end_time > #{startDate}
and <![CDATA[ leave_start_time < #{endDate}]]>
and yn =1
and aunt_Id in
<foreach collection="list" item="auntId"open="(" close=")" separator=",">
#{auntId}</foreach></select>
<select id="selectByAuntIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from aunt_leave_info
where leave_end_time > #{startDate}
and <![CDATA[ leave_start_time < #{endDate}]]>
and yn =1
and aunt_Id in
<foreach collection="list" item="auntId"open="(" close=")" separator=",">
#{auntId}</foreach></select>