<sqlid="table"> work_holiday</sql><selectid="getByDate"resultMap="BaseResultMap"> select <includerefid="Base_Column_List"/> from <includerefid="table"/> where (year(day_start) = year(#{startDay}) AND month(day_start) = month(#{startDay})) OR (year(day_end) = year(#{endDay}) AND month(day_end) = month(#{endDay}))</select>