update cal_calendar set type=#{type} where cal_date >=#{startDate} and cal_date <=#{endDate}