|
@@ -11,7 +11,7 @@
|
|
|
update geke_vacation_header set user_id=#{userid},year_day=#{yearDate},available_day=#{avDate},name=#{name},weixin_id=#{weixinId} where id=#{id}
|
|
|
</update>
|
|
|
<delete id="deleteByDate">
|
|
|
- delete from geke_vacation_body where date_format(end_date, '%Y-%m')<=date_format('2022-05-31', '%Y-%m')
|
|
|
+ delete from geke_vacation_body where date_format(end_date, '%Y-%m')<=date_format('2022-05-31', '%Y-%m') and holiday_type!='年假'
|
|
|
</delete>
|
|
|
|
|
|
|
|
@@ -68,7 +68,8 @@
|
|
|
start_date as 'startDates',
|
|
|
end_date as 'endDates',
|
|
|
holiday_count as 'holidayCount',
|
|
|
- holiday_type as 'holidayType'
|
|
|
+ holiday_type as 'holidayType',
|
|
|
+ start_date as 'year'
|
|
|
from geke_vacation_body
|
|
|
where holiday_type='年假' <!--not in('事假','病假','调休假')!-->
|
|
|
<if test="userid!=null and ''!=userid">
|